<class_pattern> = <type>() <spanclass="hljs-comment"># Matches any object of that type.</span>
<class_pattern> = <type>() <spanclass="hljs-comment"># Matches any object of that type.</span>
<wildcard_patt> = _ <spanclass="hljs-comment"># Matches any object.</span>
<wildcard_patt> = _ <spanclass="hljs-comment"># Matches any object.</span>
<capture_patt> = <name><spanclass="hljs-comment"># Matches any object and binds it to name.</span>
<capture_patt> = <name><spanclass="hljs-comment"># Matches any object and binds it to name.</span>
<or_pattern> = <pattern> | <pattern> [| ...] <spanclass="hljs-comment"># Matches any of the patterns.</span>
<as_pattern> = <pattern><spanclass="hljs-keyword">as</span><name><spanclass="hljs-comment"># Binds match to name. Also <type>(<name>).</span>
<as_pattern> = <pattern><spanclass="hljs-keyword">as</span><name><spanclass="hljs-comment"># Binds match to name. Also <type>(<name>).</span>
<or_pattern> = <pattern> | <pattern> [| ...] <spanclass="hljs-comment"># Matches any of the patterns.</span>
<sequence_patt> = [<pattern>, ...] <spanclass="hljs-comment"># Matches sequence with matching items.</span>
<sequence_patt> = [<pattern>, ...] <spanclass="hljs-comment"># Matches sequence with matching items.</span>