Skip to content

Instantly share code, notes, and snippets.

@sooop
Created May 19, 2015 08:53
Show Gist options
  • Save sooop/1c09bcdf87d4f8a70963 to your computer and use it in GitHub Desktop.
Save sooop/1c09bcdf87d4f8a70963 to your computer and use it in GitHub Desktop.
Convert String into list of Int in Haskell
process :: (Integral a) => String -> a
process = foldr1 (*) . map (read . (:""))
main = print $ process "2462547592605757"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment