Created
October 5, 2016 14:08
-
-
Save simonewebdesign/206082b05e064ca7a908cc888487b883 to your computer and use it in GitHub Desktop.
Filter spaces in Elm 0.17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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