fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 287: Number of bytes of a string
Idiom # 287: Number of bytes of a string
See
programming-idioms.org
:
Code
n := s.byte_length
What are effects?
Runnable Example
ex287 is s := "abc123" n := s.byte_length s2 := "🌎️" n2 := s2.byte_length say "'$s' has $n bytes" say "'$s2' has $n2 bytes"
What are effects?
last changed: 2024-07-01
next: Idiom # 288: Check if set contains a value