Ge

Generic functional library for Go, inspired by Kotlin collection API

Hacker News

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 card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
60%60% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
58%58% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
47%47% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Product HuntUnlikely to reach the leaderboard · Strong signals: code · Missing: mac, agents, macos
43%43% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
35%35% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
2%2% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Or
Ordered – A sorted collection library for Zig61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ordered – A sorted collection library for Zig

Hacker News21
Vu
VueUse – Collection of Vue Composition API Utils for Both Vue 3 and 248%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

VueUse – Collection of Vue Composition API Utils for Both Vue 3 and 2

Hacker News6
I
I made a boxen library for Python (inspired by sindresorhus)63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made a boxen library for Python (inspired by sindresorhus)

Hacker News2
Hy
HyperApp on CodePen. HyperApp Is a JavaScript Library Inspired by Elm and Redux64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

HyperApp on CodePen. HyperApp Is a JavaScript Library Inspired by Elm and Redux

Hacker News1
XK
XKCD-inspired StackSort52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

XKCD-inspired StackSort

Hacker News948
Ex
Experimental Hyperdocument System Inspired by Doug Engelbart51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Experimental Hyperdocument System Inspired by Doug Engelbart

Hacker News1
He
Heresy, a BASIC-inspired functional Lisp62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Heresy, a BASIC-inspired functional Lisp

Hacker News34
Fu
Functional Haskell-inspired arrows for Ruby68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Functional Haskell-inspired arrows for Ruby

Hacker News3
Sw
SwipeOut - 2048 inspired50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

SwipeOut - 2048 inspired

Hacker News4
WI
WIP C compiler in Go, inspired by 8cc36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

WIP C compiler in Go, inspired by 8cc

Hacker News60