Releases: m4gshm/gollections
Releases · m4gshm/gollections
v0.0.14
v0.0.13
Minimal go version: 1.22.
No backward compatibility with previous version.
Changes:
- api renaming: ConvCheck->ConvOK, ConvertCheck->ConvertOK.
- new loop, slice API:
- collectors: ToMap\Group methods with Append and Order prefix\suffix.
- reducers : Accum, ReduceOK functions.
- new map_ collector API: Keys, Values functions.
- new util APIs:
- error_.As
- convert.ToType
- is.Not
- use.IfOK
- rangefunc API:
All
methods of loop, collections (needs enable GOEXPERIMENT=rangefunc).
v0.0.12
Minimal go version: 1.22.
No backward compatibility with previous version.
Changes:
- Iterator API is partially removed and replaced by loop API.
- renamed interfaces: ForLoop->For, ForEachLoop->ForEach, TrackLoop->Track, TrackEachLoop->TrackEach
- introduced rangefunc looping API.
v0.0.11
minimal go version: 1.21
readme: extended description of API
fix(slice): Delete function argument order
feat(map_): resolv package methods naming
refinement(sort):
- migrated to slices.SortFunc, slices.SortStableFunc
- api extended by functions StableSort, SortAsc, SortDesc, StableSortAsc, StableSortDesc
- Of replaced by Asc, Desc functions readme: included shortcuts description
- slice.Less interface replaced by slice.Comparer
- new package comparer
v0.0.10
No backward compatibility with previous version.
Changes:
- many methods of loop, slice, convert APIs renamed: ToValues -> PtrVal, GetValues -> NoNilPtrVal, ToKV -> KeyValue, ToKVs -> KeysValues, ExtractKeysValue -> KeysValue, ExtractKeys ->ExtraKeys, ExtractValues -> ExtraValues
- extended erroreable API
- loop API extended by a 'for' looping helper
- feat(map_): filter, Get, Getter, Contains APIs
- feat(op): Get
v0.0.9
API units renaming. No back compatibility with v0.0.8.
Fixed:
- expr/use - added methods Eval, EleseZero for erroneous expression branches
- loop: ForEachFiltered
- break/loop: FiltIter.Next(), KeyValuer.Next, Slice
- break/kv/loop: Firstt, FiltIter.Next()
- kv/loop: Firstt, FilterIter.Next
New:
- slice: FiltAndConv
v0.0.8
Behavior changed:
- reordered arguments of key\value merge functions from
func(K, V, K, V) (K, V)
tofunc(K, K, V, V) (K, V)
for compactness. - slice.Range, loop.Range generate integers excluding the last one.
- slice.Generate is removed as duplicate of loop.Slice.
New:
- Expressions API: use, get (see readme for more information).
- loop.RangeClosed, slice.RangeClosed functions for back compatibility with previous version of Range functions.
Improved API:
- slice, map, loop, kv - synchronized across breakable and simple APIs, extended by additional functions.
v0.0.7
v0.0.6
v0.0.5
Slice API:
- sort methods moved to the clone/sort
- new clone.Deep method
- new clone/stablesort package
- fixed order of generics parameters ([T any, TS ~[]T] -> [TS ~[]T, T any])
- sort.ByOrdered renamed to sort.By
- renamed converting methods:
- Map to Convert
- MapFit to ConvertFit
- MapIndex to ConvertIndexed
- MapFitIndex to ConvertFitIndexed
- MapCheck to ConvertCheck
- MapCheckIndex to ConvertCheckIndexed
Collections API:
- extended by StableSort method
- Copy method has been renamed to Clone
map_ API:
- new clone package
- new map_.ConvertValues, map_.Values, map_.ValuesConverted methods