Skip to content

Releases: kamstrup/intmap

0.5.1 - 32 bit fixes

18 Dec 13:29
cfd57b2
Compare
Choose a tag to compare
  • Fix 32 bit build, thanks to @paul1r

0.5.0

30 Nov 21:40
881e963
Compare
Choose a tag to compare

Go 1.23 Iterators

Map.All, Map.Keys, Map.Values, and Set.All conforming to the new iterator protocol in Go 1.23.

Thanks to @errx for the contribution.

0.4.0

08 Apr 10:25
Compare
Choose a tag to compare

API Changes

  • The visitor func passed to ForEach must now return a bool. True to continue iteration, false to stop. This applies both to Set and Map types.

API Additions

  • The Set type now as Clear() and Del(k) methods, similar to Map

0.3.0

25 Mar 09:31
Compare
Choose a tag to compare

Changes

  • New intmap.Set[K] type modelling a set. All just syntactic sugar on top of Map[K, struct{}]
  • Nil maps and sets can be read from. Has, Get, Len, and ForEach are valid on nil receivers, like standard Go maps are

Full Changelog: v0.2.0...v0.3.0

0.2.0

03 Oct 11:36
b23fd53
Compare
Choose a tag to compare

New API

  • PutIfNotExists(K,V) (V, bool)
  • Has(K) bool

Fixed go.mod

10 Jul 09:00
Compare
Choose a tag to compare

No code changes since 0.1.0, just fixing go.mod

First preview release

07 Jul 07:09
Compare
Choose a tag to compare

APIs might still be in flux and I might have introduced some bugs, but tests and benchmarks are looking good <3