assoc= ( assoc1 assoc2 -- ? )
Factor handbook » The language » Collections » Associative mapping operations » Associative mapping protocol

Prev:assoc-like ( assoc exemplar -- newassoc )
Next:assoc-hashcode ( n assoc -- code )


Vocabulary
assocs

Inputs
assoc1an assoc
assoc2an assoc


Outputs
?a boolean


Word description
Tests if two assocs contain the same entries. Unlike =, the two assocs may be of different types.

Notes
Assoc implementations should define a method for the equal? generic word which calls this word after checking that both inputs have the same type.

Definition