go-collections
go-collections copied to clipboard
optimize kv.Collection.Every functions to return early
Currently, kv.Collection.Every
uses kv.Collection.Each
to iterate over the collection, which doesn't return early when a non-matching value is encountered, forcing more iterations than necessary.