Skip to content

Instantly share code, notes, and snippets.

@lepinekong
Created December 29, 2017 17:23
Show Gist options
  • Save lepinekong/d5cf963ec815b1c093cc01fa61952268 to your computer and use it in GitHub Desktop.
Save lepinekong/d5cf963ec815b1c093cc01fa61952268 to your computer and use it in GitHub Desktop.
Rebol equivalent
>> foreach i range 5 10 [print i]
5
6
7
8
9
10
>> foreach i range/step 10 5 2 [print i]
10
8
6
>> foreach i range/step 10 5 -2 [print i]
9
7
5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment