>hash-set ( members -- hash-set )
Factor documentation > Factor handbook > The language > Collections > Sets > Set implementations > Hash sets
Prev:<hash-set> ( capacity -- hash-set )


Vocabulary
hash-sets

Inputs and outputs
membersa sequence
hash-seta hash-set


Word description
Creates a new hash set with the given members.

Definition
USING: hash-sets.private kernel sequences ;

IN: hash-sets

: >hash-set ( members -- hash-set )
dup length <hash-set> [ (rehash) ] keep ; inline