[Haskell-cafe] split string into n parts

jim burton jim at sdf-eu.org
Mon Oct 23 16:57:04 EDT 2006


tweak to in_fives

> in_fives l = unfoldr (splitAtMb 5)
>                        (l ++ replicate (5 - length l `mod` 5) 'X')

-- 
View this message in context: http://www.nabble.com/split-string-into-n-parts-tf2496941.html#a6961912
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list