Idiomatically determine all the lowercase and uppercase letters: Difference between revisions

m
→‎{{header|Haskell}}: (slightly simplified chunksOf)
(→‎{{header|Haskell}}: or generalising beyond a narrowly Anglo-Saxon notion of the alphabet)
m (→‎{{header|Haskell}}: (slightly simplified chunksOf))
Line 205:
 
chunksOf :: Int -> [a] -> [[a]]
chunksOf i xs = map (take i) (<$> ($ (:)) (splits xs) [])
where
splits [] _ n = []
9,655

edits