Std.HashMap.equals
1 declaration
fn
equals: &Std.HashMap.HashMap[K, V] -> &Std.HashMap.HashMap[K, V] -> Bool where K: Eq + Hash, V: EqThis is a callable function.
What it does
Whether two maps hold the same pairings.
Order is not part of it. Two maps built by inserting the same pairs in
different orders hold the same thing, and a comparison that said otherwise
would make equality depend on history rather than on contents.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
- Names inside [ ] are type arguments, such as the item type held by a collection.
