fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 274: Remove all white space characters
Idiom # 274: Remove all white space characters
See
programming-idioms.org
:
Code
t := String.type.from_bytes (s.utf8 & (c -> !c.is_ascii_white_space))
What are effects?
Runnable Example
ex274 is s := "hello world!\nthis is an example with white spaces\nline breaks and\t\t\t\ttabs" say s t := String.type.from_bytes (s.utf8 & (c -> !c.is_ascii_white_space)) say t
What are effects?
last changed: 2024-08-19
next: Idiom # 275: Binary digits to byte array