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

Next:assoc-union-all ( seq -- union )


Vocabulary
assocs

Inputs
assocan assoc
exemplaran assoc


Outputs
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