Anas-patternhas the formv@p
wherev
is aregular identifierandp
is a pattern. This pattern matches ifp
matches, and the variablev
will be bound in the body to the value matchingp
.
For example, this expression evaluates to3
:
Anas-patternhas the formv@p
wherev
is aregular identifierandp
is a pattern. This pattern matches ifp
matches, and the variablev
will be bound in the body to the value matchingp
.
For example, this expression evaluates to3
: