In Variables§

See primary documentation in context for &?BLOCK

The special compile variable &?BLOCK behaves similarly to &?ROUTINE but it allows to introspect a single block of code. It holds a Block and allows for recursion within the same block:

for '.' {
    .Str.say when !.IO.d;
    .IO.dir()».&?BLOCK when .IO.d # lets recurse a little! 
}