Home / Docs / Standard library / Built-in methods

same_entries

Release v0.4.0Edition 0.5 preview

A built-in method, resolved by the type of its receiver (spec/14 §2). Edition 0.5 preview.

una
m.same_entries(as: HashMap[K, V]) -> Bool
  where m: HashMap[K, V]

Whether m and as have the same keys, each with an equal value, whatever the order they were added in; V must satisfy Eq. A hash map has no ==. O(n · |k|) expected (spec/28 §7).

Specification

Generated from una v0.4.0 (docs/std/builtins.json, which is not part of the specification): built-in methods have no declaration, so una writes these signature lines and tests each against its checker. The specification governs: spec/14 §2.