Tags: creachadair/mds
Tags
stree: make Inorder and InorderAfter into range functions These were very nearly range functions already, except that they returned a Boolean result. Remove that result and rework the type signature of InorderAfter to move the yield function into the iterator. Update the usage in omap and oset.
Release v0.21.1 Changes: - cache: remove the onSize argument from Evict - shell: convert the Each method into a range function Maintenance: - shell: add benchmarks for Join as well as Quote Performance: - shell: pool buffers and avoid reallocations in Quote and Join
all: change the signature of Each to be a range function (#20) Most of the collections defined here already have an Each method that iterates the contents of the collection and was almost compatible with the new range function interface added in Go 1.23. Here, we make it fully compatible, by discarding the Boolean return value from the Each method itself. This bumps the required Go version from 1.22 to 1.23. Technically we could avoid that by not updating the usage within the package itself, but as far as I am aware all the consumers of this package are using Go 1.23 already.
PreviousNext