Untitled
unknown
plain_text
2 years ago
172 B
8
Indexable
span'' :: (a-> Bool) -> [a] -> ([a],[a])
span'' _ [] = ([],[])
span'' f (x:xs) | f x = (x:a,b)
| otherwise = ([],x:xs)
where (a,b) = span'' f xsEditor is loading...
Leave a Comment