Fix whitespace
This commit is contained in:
parent
73093e4e29
commit
7ec9fbe884
@ -5,7 +5,6 @@ module Alea.List where
|
|||||||
split :: (Eq a) => a -> [a] -> [[a]]
|
split :: (Eq a) => a -> [a] -> [[a]]
|
||||||
split _ [] = [[]]
|
split _ [] = [[]]
|
||||||
split delim (c:cs)
|
split delim (c:cs)
|
||||||
| c == delim = [] : rest
|
| c == delim = [] : rest
|
||||||
| otherwise = (c : head rest) : tail rest
|
| otherwise = (c : head rest) : tail rest
|
||||||
where
|
where rest = split delim cs
|
||||||
rest = split delim cs
|
|
||||||
|
Loading…
Reference in New Issue
Block a user