# | declares $x in the scope of the block my $lambda = -> $x { $x * $x } # reused in loop syntax: for -> $x { say $x } # | declares $x in the scope of the block sub square($x) { $x * $x }