jim burton <[EMAIL PROTECTED]> writes:

> I want to split a string into 5 parts of equal length, with the last fifth
> padded if necessary
(snip)
> *Main> fifths "12345"
> "1 23 45"

What's the correct answer for fifths "123456"? I can't figure out how to
meet both your constraints. Is "12 34 56 XX XX" permitted (padding
before fifth as well)?

-- Mark

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to