Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Joins a list of lists with a separator.
- myIntersperse :: a -> [[a]] -> [a]
- myIntersperse _ [] = []
- myIntersperse _ [x] = [x]
- myIntersperse separator (x:xs) = x ++ separator ++ myIntersperse separator xs
Add Comment
Please, Sign In to add comment