Loops/Continue: Difference between revisions

Added Smalltalk (Pharo)
(Added Smalltalk (Pharo))
Line 1,808:
</pre>
 
=={{header|Smalltalk}}==
{{works with|Pharo}}
<lang Smalltalk>
1 to: 10 do: [ :i |
[ :continue |
i % 5 = 0 ifTrue: [
Transcript show: i; cr.
continue value ].
Transcript
show: i;
show: ', '.
] valueWithExit.
]
</lang>
 
=={{header|SPL}}==
Anonymous user