Generic functional library for Go, inspired by Kotlin collection API
Generic functional library for Go, inspired by Kotlin collection API
https://github.com/luraim/fun 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
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
Ordered – A sorted collection library for Zig
VueUse – Collection of Vue Composition API Utils for Both Vue 3 and 2
I made a boxen library for Python (inspired by sindresorhus)
HyperApp on CodePen. HyperApp Is a JavaScript Library Inspired by Elm and Redux
XKCD-inspired StackSort
Experimental Hyperdocument System Inspired by Doug Engelbart
Heresy, a BASIC-inspired functional Lisp
Functional Haskell-inspired arrows for Ruby
SwipeOut - 2048 inspired
WIP C compiler in Go, inspired by 8cc