Haskell - interpreting a number
- by Abstract
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?