fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 161: Multiply all the elements of a list
Idiom # 161: Multiply all the elements of a list
See
programming-idioms.org
:
Code
elements.map e->e*c
What are effects?
Running Example
ex161 is elements := [1,2,3] c := 2 say (elements.map e->e*c)
What are effects?
last changed: 2024-07-01
next: Idiom # 162: Execute procedures depending on options