fuzion-lang.dev β The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
β’
Idioms
β’
Idiom # 47: Extract string suffix
Idiom # 47: Extract string suffix
See
programming-idioms.org
:
Code
n := s.codepoint_length t := s.substring_codepoint n-5 n
What are effects?
Running Example
ex47 is s := "ππΆπ£πΈπππ·π" for i in 0..s.codepoint_length do n := s.codepoint_length t := s.substring_codepoint n-i n say "'$t'"
What are effects?
last changed: 2024-07-01
next: Idiom # 48: Multi-line string literal