aoc2022/Aoc.hs
2022-12-13 16:44:54 +01:00

3 lines
83 B
Haskell

module Aoc (splitOn) where
splitOn c l|(h,_:t)<-span(/=c) l=h:splitOn c t|let=[l]