fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 12: Check if list contains a value
Idiom # 12: Check if list contains a value
See
programming-idioms.org
:
Code
e ∈ list
What are effects?
Running Example
ex12 is squares := container.set_of_ordered ((1..100).map i->i*i) (1..100).for_each x-> if x ∈ squares say "$x in squares" else say "$x not in squares"
What are effects?
last changed: 2025-05-13
next: Idiom # 13: Iterate over map keys and values