fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 147: Remove all non-ASCII characters
Idiom # 147: Remove all non-ASCII characters
See
programming-idioms.org
:
Code
t := s.as_codepoints .filter cp->cp.is_ascii .as_string ""
What are effects?
Running Example
ex147 is s := "abcϢϕρ" t := s.as_codepoints .filter cp->cp.is_ascii .as_string "" say t
What are effects?
last changed: 2024-07-01
next: Idiom # 148: Read list of integer numbers from stdin