Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
@@ -0,0 +1,11 @@
module Lib (split) where
split :: Eq a => a -> [a] -> [[a]]
split del =
foldr
( \c (x : xs) ->
if c == del
then [] : x : xs
else (c : x) : xs
)
[[]]
The note is not visible to the blocked user.