Loops/Increment loop index within loop body: Difference between revisions

m
(add RPL)
Line 4,372:
'''STEP'''
It is nevertheless more idiomatic to use a <code>WHILE..REPEAT</code> loop, managing the loop index in the stack:
≪ 0 42
'''WHILE''' OVER 12 < '''REPEAT'''
Line 4,381:
'''END''' DROP
 
 
=={{header|Ruby}}==
1,151

edits