fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 116: Remove occurrences of word from string
Idiom # 116: Remove occurrences of word from string
See
programming-idioms.org
:
Code
s2 := s1.replace w ""
What are effects?
Running Example
ex116 is s1 := "banana bo bana bandana" w := "ana" s2 := s1.replace w "" say s2
What are effects?
last changed: 2024-07-01
next: Idiom # 117: Get list size