fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 254: Replace value in list
Idiom # 254: Replace value in list
See
programming-idioms.org
:
Code
Code input
x¹ := x.replace ["foo"] ["bar"]
What are effects?
Runnable Example
Code input
ex254 is x := ["foo", "bar", "fooo", "foo", "bar", "foo"] x¹ := x.replace ["foo"] ["bar"] say x¹
What are effects?
last changed: 2026-02-20
next: Idiom # 255: Print set