fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 257: Traverse list backwards
Idiom # 257: Traverse list backwards
See
programming-idioms.org
:
Code
for e in items.reverse.indexed do (i, x) := e say "$i = $x"
What are effects?
Running Example
ex257 is items := ["a", "b", "c"] for e in items.reverse.indexed do (i, x) := e say "$i = $x"
What are effects?
last changed: 2024-07-01
next: Idiom # 258: Convert list of strings to list of integers