fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 163: Print list elements by group of 2
Idiom # 163: Print list elements by group of 2
See
programming-idioms.org
:
Code
for i in list.indices : 2 do say "{list[i]}, {list[i+1]}"
What are effects?
Running Example
ex163 is list := array 50 i->i*i for i in list.indices : 2 do say "{list[i]}, {list[i+1]}"
What are effects?
last changed: 2024-07-01
next: NYI: Idiom # 164: Open URL in default browser