Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chunksOf :: Int -> [a] -> [[a]]
- chunksOf _ [] = []
- chunksOf n xs = chunk : (chunksOf n rest)
- where (chunk, rest) = splitAt n xs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement