2 ms·
>(Note that I had to define 'split' by hand; it is a gaping hole in the otherwise very comprehensive Data.List library.) Have you looked at Data.List.Split (`c
by gizmo686 13y ago
>(Note that I had to define 'split' by hand; it is a gaping hole in the otherwise very comprehensive Data.List library.)
Have you looked at Data.List.Split (`cabal install split`)? splitOn from that package should do what you want. Admitadly, this should be part of Data.List in the standard library.