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