-
-
Save AlexDaniel/3790373044a86be069a021b73c13c90b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub bar(&some-code) { | |
LEAVE { say ‘left’ }; | |
some-code() | |
}; | |
sub foo { | |
bar { return 42 } # this is a block of code that `return`s from `foo` but is executed in `bar` | |
}; | |
for ^2 { say foo } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment