fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 191: Check if any value in a list is larger than a limit
Idiom # 191: Check if any value in a list is larger than a limit
See
programming-idioms.org
:
Code
Code input
if a ∃ >x then f
What are effects?
Runnable Example
Code input
ex191 is f => yak "yes, f called" test(a Sequence i32, x i32) => if a ∃ >x then f yak "test on 1..10 if any larger 7: "; test 1..10 7; say "" yak "test on 1..10 if any larger 17: "; test 1..10 17; say "" yak "test on 1..99 if any larger 17: "; test 1..99 17; say ""
What are effects?
last changed: 2026-02-20
next: NYI: Idiom # 192: Declare a real variable with at least 20 digits