jim burton wrote:I want to split a string into 5 parts of equal length, with the last fifth padded if necessary, but can't get it right - here's what I've got -fifths s = unwords.take 5.unfoldr (Just . splitAt l) $ s ++ repeat ' ' where l = (length s + 4) `div` 5