Loops/Continue: Difference between revisions

Line 1,975:
 
=={{header|Smalltalk}}==
{{works with|Pharo}} {{works with|Smalltalk/X}} actually works with all dialects ¹
<lang Smalltalk>
1 to: 10 do: [ :i |
Line 1,988:
]
</lang>
&sup1; actually with all; if valueWithExit is not present in the Block class, it can be added as:
<lang Smalltalk>Block >> valueWithExit
^ self value:[^ nil]</lang>
 
Anonymous user