With the release of go 1.18 we have exp/slices and exp/maps modules, but they are not as rich as the Kotlin collection library which has been a real pleasure to use.
This module attempts to provide simple functions to reduce boilerplate and make the intent of code clearer, not push a full "functional programming" approach, as some other libraries have tried to.
The following functions are supported:All, Any, Associate, Chunked, Distinct, DistinctBy, Drop, DropLast, DropWhile, DropLastWhile, Filter, FilterIndexed, Fold, FoldIndexed, GroupBy, Map, MapIndexed, Partition, Reduce, ReduceIndexed, Reverse, Reversed, Take, TakeLast, TakeWhile, TakeLastWhile, Windowed