Conditional structures: Difference between revisions

m
→‎given/when: update link to documentation
(Applesoft BASIC)
m (→‎given/when: update link to documentation)
Line 6,018:
<tt>when</tt> blocks are allowed in any block that topicalizes <tt>$_</tt>, including a
<tt>for</tt> loop (assuming one of its loop variables is bound to <tt>$_</tt>)
or the body of a method (if you have declared the invocant as <tt>$_</tt>)." See [more at: https://designdocs.raku.org/S04.htmllanguage/control#Switch_statements Synopsis 4].index-entry-switch_(given)
 
There are also statement modifier forms of all of the above.
2,392

edits