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