Skip to content

Releases: m4gshm/gollections

v0.0.14

02 Jul 18:00
Compare
Choose a tag to compare

No backward compatibility with previous version.
Changes:

  • renamed collector functions from ToMap... to Map..., ToSlice to Slice.
  • new packages seq, seq2 extends rangefunc iterators.
  • bugfixes

v0.0.13

16 Jun 17:23
119d77e
Compare
Choose a tag to compare

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

31 Mar 15:07
Compare
Choose a tag to compare

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

15 Nov 21:26
a9d6f2e
Compare
Choose a tag to compare

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

11 Jun 20:44
Compare
Choose a tag to compare

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

26 May 20:53
5e504e6
Compare
Choose a tag to compare

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

17 May 21:17
b9af900
Compare
Choose a tag to compare

Behavior changed:

  • reordered arguments of key\value merge functions from func(K, V, K, V) (K, V) to func(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

05 May 21:23
Compare
Choose a tag to compare

API redesign. No back compatibility with v0.0.6.
Moved many packages, renamed functions, added experimental APIs. The README.md has also been rewritten.
Main packages and features is described it the README.md.

v0.0.6

24 Feb 19:54
Compare
Choose a tag to compare

Slice API:

  • adds cloning version of the reverse api, sort and stable sort versions of api without cloning
  • adds cloning reverse API version, sort and stable sort API versions without cloning
  • makes the base reverse API no cloning

v0.0.5

01 Jan 19:26
Compare
Choose a tag to compare

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