fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 169: String length
Idiom # 169: String length
See
programming-idioms.org
:
Code
n := s.codepoint_length
What are effects?
Running Example
ex169 is s1 := "été" n1 := s1.codepoint_length say "length of $s1 is $n1" s2 := "0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣" n2 := s2.codepoint_length say "length of $s2 is $n2"
What are effects?
last changed: 2024-07-01
next: Idiom # 170: Get map size