blob: 37a127657c75582aa156a2112a24f2a88c087c00 (
plain)
1
2
3
4
5
6
7
|
<p>
The <code>as</code> operator can be used to assign sub patterns to variables.
</p>
<p>
The pattern <code>[_, ..] as first</code> will match any non-empty list and
assign that list to the variable <code>first</code>.
</p>
|