fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 63: Replace fragment of a string
Idiom # 63: Replace fragment of a string
See
programming-idioms.org
:
Code
x2 := x.replace y z
What are effects?
Running Example
ex63 is x := "Fusion is super cool and not for n00bs!" y := "s" z := "z" x2 := x.replace y z say x2 x3 := x.replace y "zzz" say x3 x4 := x.replace "and not for n00bs" "for everyone!" .replace y z say x4
What are effects?
last changed: 2024-07-01
next: Idiom # 64: Big integer : value 3 power 247