fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 136: Remove all occurrences of a value from a list
Idiom # 136: Remove all occurrences of a value from a list
See
programming-idioms.org
:
Code
items := items & e -> e != x
What are effects?
Running Example
ex136 is items := ["a","b","c","b","c","a"] x := "b" items1 := items & e -> e != x say items1
What are effects?
last changed: 2024-07-01
next: Idiom # 137: Check if string contains only digits