flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
NYI: Idiom # 274: Remove all white space characters
NYI: 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?
next: NYI: Idiom # 275: Binary digits to byte array