go-funk: 一个现代的Go工具库提供一些助手类(map, find, contains, filter等)
go-funk: 一个现代的Go工具库提供一些助手类(map, find, contains, filter, ...)
v0.4.0
Assets
2
0.3
- More Go versions have been added to the CI (thks @ferhatelmas, @HaraldNordgren)
- Add
Compact
(thks @poporul) - Add
Reduce
which reduces an iterable based on a function (thks @poporul) - Add
Zip
which zip two iterables (thks @HaraldNordgren) - Add
Fill
which fills an iterable with a value (thks @HaraldNordgren) - Add
Every
which returns true if every element is present in a iteratee (thks @HaraldNordgren) - Add
Any
which returns true if any element of the iterable is not empty. If the iterable is empty, return False. - Add
All
which returns true if all elements of the iterable are not empty (or if the iterable is empty) - Add
ConvertSlice
which converts a slice to a desired type - Add
Drop
which creates an array/slice withn
elements dropped from the beginning (thks @spoonscen) - Missing documentation for
Compact
andReduce
(thks @alexander-yu) - Reduce memory usage for
Uniq
functions (thks @orvice)
热门度与活跃度
0.1
2.0
Watchers:37 |
Star:1437 |
Fork:89 |
创建时间: 2016-12-30 21:55:15 |
最后Commits: 17天前 |
许可协议:MIT |
3108806
Verified
Max*
methods (thks @abshek)Min*
methods (thks @CatInCosmicSpace)Chunk
FindKey
to iterate over elements of collection, returning the firstSome
to return true if at least one element is present in an iteratee