fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 19: Reverse a list
Idiom # 19: Reverse a list
See
programming-idioms.org
:
Code
x.reverse
What are effects?
Running Example
x := ["A", "B", "C", "D"] say "using array: $x reversed is {x.reverse}" l := x.as_list r := l.reverse say "using lazy list: $l reversed is $r"
What are effects?
last changed: 2024-07-01
next: Idiom # 20: Return two values