all-unique? ( set -- ? )
Factor handbook » The language » Collections » Sets » Operations on sets

Prev:fast-set ( set -- set' )
Next:duplicates ( set -- seq )


Vocabulary
sets

Inputs
seta set


Outputs
?a boolean


Word description
Tests whether a set contains any repeated elements.
USING: sets prettyprint ; { 0 1 1 2 3 5 } all-unique? .
f


Definition


Methods