in? ( elt set -- ? )
Factor handbook » The language » Collections » Sets » Operations on sets

Next:members ( set -- seq )


Vocabulary
sets

Inputs
eltan object
seta set


Outputs
?a boolean


Word description
Tests whether the element is a member of the set.

Each set type is expected to implement a method on this generic word as part of the set protocol.

Definition

GENERIC: in? ( elt set -- ? )


Methods