From 840b7407b810c220da2437ed16edc11fac5c4990 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Tue, 13 Dec 2022 16:44:54 +0100 Subject: [PATCH] Aoc library --- Aoc.hs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Aoc.hs diff --git a/Aoc.hs b/Aoc.hs new file mode 100644 index 0000000..51810fd --- /dev/null +++ b/Aoc.hs @@ -0,0 +1,3 @@ +module Aoc (splitOn) where + +splitOn c l|(h,_:t)<-span(/=c) l=h:splitOn c t|let=[l]