Haskell - interpreting a number

Posted by Abstract on Stack Overflow See other posts from Stack Overflow or by Abstract
Published on 2010-05-31T02:42:10Z Indexed on 2010/05/31 2:52 UTC
Read the original article Hit count: 200

Filed under:

I have a number 9877342931235. Using Haskell, I need to show it as:

987-734293-123-5

i've tried interspersing the list but of course that puts '-' between every digit. How would I do it to yield the actual result?

© Stack Overflow or respective owner

Related posts about haskell