All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.5.1 (2025-01-21)
- Performance: Further optimize function
SortedFromMap
.
0.5.0 (2025-01-20)
- Bug: Functions
Take
andDrop
would previously produce incorrect results when used with unsigned integers.
- API: function
SortedFromMapFunc
(renamed fromSortedFuncFromMap
) - Tests: Add tests for cases where
uint
is used as type argument for type parameters constrained bygolang.org/x/exp/constraints.Integer
. - Tests: Add benchmarks for
SortedFromMap
.
- Dependencies: Go 1.23.2 (or above) is now required.
- Dependencies: Update golang.org/x/exp to latest.
- API (breaking change): The parameters of
Between
are now constrained bygolang.org/x/exp/constraints.Signed
rather than bygolang.org/x/exp/constraints.Integer
. - Performance: Functions
SortedFromMap
andSortedFromMapFunc
are now optimized for cases where iteration is cut short. - Documentation: minor fixes
- API (breaking change): function
SortedFuncFromMap
0.4.0 (2024-10-03)
- API: function
Reduce
(renamed fromFoldl
)
- API (breaking change): The second argument of functions
At
,Drop
,Repeat
, andTake
no longer needs be anint
; for more flexibility, it can now be any value whose type is constrained bygolang.org/x/exp/constraints.Integer
. - Documentation: minor fixes
- API (breaking change): function
Foldl
- API (breaking change): function
AllErrors
0.3.0 (2024-09-21)
- API: function
Flatten
(renamed fromConcat
) - API: function
Between
- API: function
Enumerate
- API: functions
Equal
,EqualFunc
- API: functions
Compare
,CompareFunc
,IsSorted
, andIsSortedFunc
- API: functions
Min
,MinFunc
,Max
, andMaxFunc
- API: functions
SortedFromMap
andSortedFuncFromMap
- API (breaking change): the type parameter in function
ContainsFunc
is now (correctly) unconstrained. - API (breaking change):
Concat
previously took an iterator over iterators; it now takes a slice of iterators. - Behavior: functions
Take
andDrop
now tolerate a negativecount
argument. - Documentation: sinks that may not terminate are now documented as such.
- Documentation: various other improvements
- API (breaking change): function
AllLeafErrors
- API (breaking change): function
Append
- API (breaking change): function
FlatMap
- API (breaking change): functions
Cons
,Head
,Tail
, andUncons
0.2.0 (2024-09-16)
- Tests: augment test suite to reach 100% code coverage.
- API (breaking changes): function
Repeat
now has ancount
parameter that specifies the number of repetitions of the desired value in the resulting iterator; ifcount
is negative, the resulting iterator is infinite. - Behavior (breaking change): function
At
now panics if itscount
argument is negative. - Behavior (breaking change): function
Drop
now panics if itscount
argument is negative. - Behavior (breaking change): function
Take
now panics if itscount
argument is negative. - Documentation: various improvements
- Tests: improve examples
- API (breaking change): function
Replicate