In Control flow§
See primary documentation in context for given
The given
statement is Raku's topicalizing keyword in a similar way that switch
topicalizes in languages such as C. In other words, given
sets $_
inside the following block. The keywords for individual cases are when
and default
. The usual idiom looks like this:
my = (Any, 21, any <answer lie>).pick;given
The given
statement is often used alone:
given 42
This is a lot more understandable than:
(42)