isi-vista / immutablecollections

A library for immutable collections, in the spirit of Guava's Immutable Collections.
MIT License
3 stars 1 forks source link

Update allowed input types for ImmutableDict creation #50

Closed berquist closed 5 years ago

berquist commented 5 years ago

Mappings were previously not allowed in the module-level constructor. Replace dict with Mapping, but still perform ordering checks internally.

Constantine says:

we are ok with taking the risk that the user can pass a non-deterministically ordered Mapping to immutabledict as long as it isn't a known-non-deterministic dict