fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 330 Map to list
Idiom # 330 Map to list
See
programming-idioms.org
:
Code
Code input
a := m.values
What are effects?
Running Example
Code input
ex330 is # Create a map with integers as keys and Millennium Problems as values m := container.map_of [ (1, "P=NP(?)"), (2, "The Hodge Conjecture"), (3, "The Poincare Conjecture"), (4, "The Riemann Hypothesis") ] # Collect all the values in the map into a list. No keys are used. a := m.values # Go through the list and print each value for v in a do say v
What are effects?
last changed: 2025-05-13
next: NYI: Idiom # 331 Clear map