dadhi / ImTools

Fast and memory-efficient immutable collections and helper data structures
MIT License
232 stars 10 forks source link

Add ImMap.GetSurePresentValue method #36

Closed dadhi closed 3 years ago

dadhi commented 4 years ago

It will save us some checks and will improve the performance in case we know that the key is in the map. And it is not a rare situation because the map is immutable and no one can remove the key without us noticing.

Related: https://github.com/dadhi/DryIoc/pull/322