Skip to content

Releases: samber/lo

v1.29.0

02 Oct 22:15
bcb54cc
Compare
Choose a tag to compare

Adding:

  • lo.ErrorAs
  • lo.TryOr
  • lo.TryOrX

v1.28.2

15 Sep 08:28
459062d
Compare
Choose a tag to compare

Fix: func Slice[T comparable] to func Slice[T any]

v1.28.1

15 Sep 08:20
bfae21c
Compare
Choose a tag to compare

Optimized:

  • Flatten
  • Replaced
  • Chunk
  • Drop*

Also added some benchmarks.

v1.28.0

05 Sep 11:05
e4150b5
Compare
Choose a tag to compare

Adding:

  • lo.ChannelDispatcher with 6 dispatching strategies:
    • lo.DispatchingStrategyRoundRobin
    • lo.DispatchingStrategyRandom
    • lo.DispatchingStrategyWeightedRandom
    • lo.DispatchingStrategyFirst
    • lo.DispatchingStrategyLeast
    • lo.DispatchingStrategyMost

v1.27.1

28 Aug 22:17
bdecc97
Compare
Choose a tag to compare

Bugfix:

  • Removed comparable constraint for lo.FindKeyBy

v1.27.0

29 Jul 10:12
cf45927
Compare
Choose a tag to compare

Breaking:

- Change of MapToSlice prototype: MapToSlice[K comparable, V any, R any](in map[K]V, iteratee func(V, K) R) []R -> MapToSlice[K comparable, V any, R any](in map[K]V, iteratee func(K, V) R) []R

Added:

  • lo.ChunkString
  • lo.SliceToMap (alias to lo.Associate)

v1.26.0

24 Jul 21:21
136691e
Compare
Choose a tag to compare

Adding:

  • lo.Associate
  • lo.ReduceRight
  • lo.FromPtrOr
  • lo.MapToSlice
  • lo.IsSorted
  • lo.IsSortedByKey

v1.25.0

04 Jul 22:57
d61070e
Compare
Choose a tag to compare

Adding:

  • lo.FindUniques
  • lo.FindUniquesBy
  • lo.FindDuplicates
  • lo.FindDuplicatesBy
  • lo.IsNotEmpty

v1.24.0

04 Jul 08:21
198c67f
Compare
Choose a tag to compare

Adding:

  • lo.Without
  • lo.WithoutEmpty

v1.23.0

03 Jul 22:59
5bdd1c1
Compare
Choose a tag to compare

Adding:

  • lo.FindKey
  • lo.FindKeyBy