Last active
March 1, 2019 12:05
-
-
Save yuizho/0bc252cee7b34d29a2be0064587dfc9a to your computer and use it in GitHub Desktop.
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
-- String | |
-- convert int into String | |
String.fromInt 1 | |
-- "1" : String | |
-- create String from List | |
String.join "," ["a", "b", "c"] | |
-- "a,b,c" : String | |
-- List | |
-- remove a item from list | |
l = ["a", "b", "c"] | |
List.take 1 l ++ List.drop 2 l | |
-- ["a","c"] : List String | |
-- reverse a list | |
List.reverse [1,2,3] | |
-- [3,2,1] : List number |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment