-
-
Save havenwood/d2b4bc35ce4b91940c1bdf2422dd133b 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
# break twice | |
loop do | |
value = 0.step.each do | |
break 42 | |
end | |
break value | |
end | |
# throw and catch | |
catch :broken do | |
loop do | |
0.step.each do | |
throw :broken, 42 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment