fuzion-lang.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.ends_with suffix
What are effects?
Running Example
ex97 is ends_with(s, suffix String) => b := s.ends_with suffix b say "{ends_with "Fuzion is great!" "great!"}" say "{ends_with "Fuzion is great!" "n00b."}"
What are effects?
last changed: 2024-07-01
next: NYI: Idiom # 98: Epoch seconds to date object