Skip to main content
Version: 1.6.0

Searching

The predicate Set.mem tests for membership in a given set.

const my_set: set<int> = Set.literal([3, 2, 2, 1]);
const contains_3: bool = Set.mem(3, my_set); // == true

Note: See the predefined namespace Set