flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 97: Check string suffix
Idiom # 97: Check string suffix
See
programming-idioms.org
:
Code
b := s.endsWith suffix
What are effects?
Running Example
ex97 is endsWith(s, suffix string) => b := s.endsWith suffix b say "{endsWith "Fuzion is great!" "great!"}" say "{endsWith "Fuzion is great!" "n00b."}"
What are effects?
next: NYI: Idiom # 98: Epoch seconds to date object