fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 51: Check if map contains key
Idiom # 51: Check if map contains key
See
programming-idioms.org
:
Code
m.has k
What are effects?
Running Example
m := container.ordered_map [ "Hund", "Katze", "Maus" ] [ "dog", "cat", "mouse" ] k := "Katze" if m.has k say "$k was found" else say "$k not found" w := "Wellensittich" if m.has w say "$w was found" else say "$w not found"
What are effects?
last changed: 2024-07-01
next: Idiom # 52: Check if map contains value