Skip to main content
Version: 1.3.0

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