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
Code input
items := items.filter (e -> e != x)
What are effects?
Running Example
Code input
ex136 is items := ["a","b","c","b","c","a"] x := "b" items1 := items.filter (e -> e != x) say items1
What are effects?
last changed: 2025-05-13
next: Idiom # 137: Check if string contains only digits