concept pattern in category elm

appears as: pattern, pattern, patterns
Elm in Action

This is an excerpt from Manning's book Elm in Action.

Observant readers may note a striking resemblance between Elm’s String.toUpper function and the toUpperCase() method one finds on JavaScript strings. This is the first example of a pattern we will encounter many times!

When you encounter a function like Random.uniform that takes a “non-empty list,” using the :: pattern in a case-expression is often a good way to obtain the two arguments it needs.