Searching
The predicate Set.mem
tests for membership in a given set.
const my_set: set<int> = Set.literal(list([3, 2, 2, 1]));
const contains_3: bool = Set.mem(3, my_set); // == true
Note: See the predefined namespace Set
The predicate Set.mem
tests for membership in a given set.
Note: See the predefined namespace Set