Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
>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
members
a
sequence
hash-set
a
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