fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 235: Decode base64
Idiom # 235: Decode base64
See
programming-idioms.org
:
Code
data := match encodings.base64.decode_str s arr array u8 => arr err error => panic "error while decoding: {err.msg}"
What are effects?
Runnable Example
ex235 is s := "SGVsbG8gV29ybGQh" data := match encodings.base64.decode_str s arr array u8 => arr err error => panic "error while decoding: {err.msg}" say (String.from_bytes data)
What are effects?
last changed: 2024-08-19
next: Idiom # 236: Large quotient