String patterns
When pattern matching on strings the <>
operator can be
used to match on strings with a specific prefix.
The pattern "Hello, " <> name
matches any string that starts with
"Hello, "
and assigns the rest of the string to the variable
name
.