Skip to content

Instantly share code, notes, and snippets.

@dschinkel
Created September 11, 2018 22:06
Show Gist options
  • Save dschinkel/a6a900ebd9c35db919775d9bb7540214 to your computer and use it in GitHub Desktop.
Save dschinkel/a6a900ebd9c35db919775d9bb7540214 to your computer and use it in GitHub Desktop.
Elm - Basics - Example
myAnswerArray =
Array.fromList ["S"]
|> Array.set 5279 "S"
viewNames1 names =
 String.join ", " (List.sort names)
viewNames2 names =
 names
 |> List.sort
 |> String.join ", "
 - (arg |> func) is the same as (func arg)
 - Just keep repeating that transformation!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment