fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 353 Test if list is sorted
Idiom # 353 Test if list is sorted
See
programming-idioms.org
:
Code
Code input
b := items.is_sorted
What are effects?
Runnable Example
Code input
ex353 is items := [1,2,2,3,2,5] b := items.is_sorted say "$items is {b ? "sorted" : "unsorted"}"
What are effects?
last changed: 2025-07-10
next: NYI: Idiom # 354 Increment map entry