Contains Procedure
Checks whether a set contains a given key.
Declaration
function Contains(
set as Set of T, key as T
) as Boolean
Parameters
- set as Set of T — Any kind of set.
- key as T — The key to check for.
Return value
Boolean — True if the set contains the key, false otherwise.
Example
Code
dim set mySet
yield "aaa"
yield "bbb"
end dim
print Contains(mySet, "aaa")
print Contains(mySet, "ccc")
Output