aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter2_flow_control/lesson10_pattern_aliases/en.html
blob: b737eb87aa33e93ba8e6daf65d6c7c768342a7ef (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 it</code> will match any non-empty list and
  assign that list to the variable <code>it</code>.
</p>