Skip to content

Instantly share code, notes, and snippets.

@yuizho
Last active March 1, 2019 12:05
Show Gist options
  • Save yuizho/0bc252cee7b34d29a2be0064587dfc9a to your computer and use it in GitHub Desktop.
Save yuizho/0bc252cee7b34d29a2be0064587dfc9a to your computer and use it in GitHub Desktop.
-- 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