thefuga/go-collections
optimize kv.Collection.Every functions to return early
Open
#40 opened on Aug 2, 2022
good first issuerefactor
Repository metrics
- Stars
- (26 stars)
- PR merge metrics
- (PR metrics pending)
Description
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.