flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 258: Convert list of strings to list of integers
Idiom # 258: Convert list of strings to list of integers
See
programming-idioms.org
:
Code
b := a.map s->s.parse_i32.val
What are effects?
Running Example
ex258 is a := ["0", "8", "15", "47", "11"] b := a.map s->s.parse_i32.val say "$a -> $b"
What are effects?
next: NYI: Idiom # 259: Split on several separators