Releases: thoas/go-funk
Releases · thoas/go-funk
v0.9.3
v0.9.2
v0.9.1
v0.9.0
- (BC) Typesafe
Min*,Max*previously returned a nil pointer when the argument does not contain any items, it has been changed to have a typesafe signature and it panics - Add
StringerJoinwhich joins an array of elements which implement theString() stringfunction (thks @arnovanliere) - Update
Getto allows zero values with the optionWithAllowZero(thks @roneli) - Add typesafe bool functions
FilterBool,ContainsBool,InBools,IndexOfBool,LastIndexOfBool,UniqBool,DropBool,ShuffleBool,ReverseBools(thks @arnovanliere) - Update
Zipto panic when the passing argument is not a slice / array
v0.8.0
Reducenow returns an interface- Add
FlapMapwhich manipulates an iteratee (map, slice) and transforms it to to a flattened collection of another type - Add support for
mapwhen usingGet - Add
Setwhich sets value at a path of a struct - Add
DifferenceInt64,DifferenceInt32,DifferenceInt,DifferenceUInt,DifferenceUInt32,DifferenceUInt64 - Add
Flattenwhich flattens a two-dimensional array. - Add
Prunewhich returns a copy of "in" that only contains fields in "paths"
Thank you @youyuanwu @vellotis @guyarb @nohponex @CengSin @samber @HarryWang29
v0.7.0
- Add
Joinwhich combines two collections using the given join method (thks @xunleii) - Add
Withoutwhich creates an array excluding all given values (thks @xunleii) - Add
Subsetwhich returns true if a collection is a subset of another (thks @reetuparna) - Add Join operations, primitives (
InnerJoin,OuterJoin,LeftJoin,RightJoin) and typesafe implementations (thks @xunleii) - Fixed input mutation in
Uniq, it returns a copy of the input without the duplicate - Fixed some typos (thks @anukul)
- Fixed
SubtractStringwhen an empty array is passed (thks @alongat)
v0.6.0
- Add
Intersectreturns the intersection between two collections (thks @samber) - Add
Differencereturns the difference between two collections (thks @samber) - Add
GetOrElseretrieves the value of the point or default (thks @samber) - Add
Subtractthe subtraction between two collections. It preserves order (thks @airani) - Fix bug in
lastIndexOf(thks @kkty)
v0.5.0
- Add
Max*methods (thks @abshek) - Add
Min*methods (thks @CatInCosmicSpace) - Fix typos (thks @flowonyx)
- Handle zero value in
Chunk - Add
FindKeyto iterate over elements of collection, returning the first - Add
Someto return true if at least one element is present in an iteratee
v0.4.0
v0.3.0
- More Go versions have been added to the CI (thks @ferhatelmas, @HaraldNordgren)
- Add
Compact(thks @poporul) - Add
Reducewhich reduces an iterable based on a function (thks @poporul) - Add
Zipwhich zip two iterables (thks @HaraldNordgren) - Add
Fillwhich fills an iterable with a value (thks @HaraldNordgren) - Add
Everywhich returns true if every element is present in a iteratee (thks @HaraldNordgren) - Add
Anywhich returns true if any element of the iterable is not empty. If the iterable is empty, return False. - Add
Allwhich returns true if all elements of the iterable are not empty (or if the iterable is empty) - Add
ConvertSlicewhich converts a slice to a desired type - Add
Dropwhich creates an array/slice withnelements dropped from the beginning (thks @spoonscen) - Missing documentation for
CompactandReduce(thks @alexander-yu) - Reduce memory usage for
Uniqfunctions (thks @orvice)