fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 213: Case-insensitive string compare
Idiom # 213: Case-insensitive string compare
See
programming-idioms.org
:
Code
Code input
for s1 in strings i in 1.. do for s2 in strings.drop i do b := s1.lower_case = s2.lower_case
What are effects?
Runnable Example
Code input
ex213 is strings := ["ABCΞ", "XYZ", "aBCξ", "abcξ"] for s1 in strings i in 1.. do for s2 in strings.drop i do b := s1.lower_case = s2.lower_case say "'$s1' = '$s2' $b"
What are effects?
last changed: 2025-07-10
next: Idiom # 214: Pad string on the right