Making Int{Map,Set} polymorphic over the key type

Georg Rudoy 0xd34df00d at gmail.com
Sat Jun 29 17:06:08 UTC 2019


сб, 29 июн. 2019 г. в 13:01, Henning Thielemann <lemming at henning-thielemann.de>:
> There is already the enummapset package.

Isn't it using fromEnum/toEnum under the hood, which might have bigger
performance penalty than `coerce`?

On the other hand, sure, the original suggestion can also be made as a
separate library wrapping IntMap/IntSet and all the calls to coerce.
I'm happy with that approach too.

-- 
  Georg Rudoy


More information about the Libraries mailing list