assoc-clone-like ( assoc exemplar -- newassoc )
Factor handbook > The language > Collections > Associative mapping operations > Associative mapping conversions

Next:assoc-combine ( seq -- union )


Vocabulary
assocs

Inputs and outputs
assocan assoc
exemplaran assoc
newassocan assoc


Word description
Outputs a newly-allocated assoc with the same elements as assoc.

Examples
USING: prettyprint assocs hashtables ; H{ { 1 2 } { 3 4 } } { } assoc-clone-like .
{ { 1 2 } { 3 4 } }


Definition

GENERIC: assoc-clone-like ( assoc exemplar -- newassoc )


Methods