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]