Skip to content

Instantly share code, notes, and snippets.

@simonewebdesign
Created October 5, 2016 14:08
Show Gist options
  • Save simonewebdesign/206082b05e064ca7a908cc888487b883 to your computer and use it in GitHub Desktop.
Save simonewebdesign/206082b05e064ca7a908cc888487b883 to your computer and use it in GitHub Desktop.
Filter spaces in Elm 0.17
import Html exposing (text)
import String
main =
(String.filter (not << isSpace) "1023 49 85")
|> String.toInt
|> toString
|> text
isSpace =
(==) ' '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment