Skip to content

Instantly share code, notes, and snippets.

Erudition Erudition

  • Inventive Consulting
  • Greater New York City Area
Block or report user

Report or block Erudition

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
yang-wei /
Last active Apr 2, 2020
Elm Destructuring (or Pattern Matching) cheatsheet

Should be work with 0.18

Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !


myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))
You can’t perform that action at this time.