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
Code input
elements.map (*c)
What are effects?
Runnable Example
Code input
ex161 is elements := [1,2,3] c := 2 say (elements.map (*c))
What are effects?
last changed: 2026-07-03
next: Idiom # 162: Execute procedures depending on options