It's not interesting. Boring people did this a million times, the result is always the same: just use for loops.
> Tips for lazy developers
> I cannot recommend it, but in case you are too lazy for repeating lo. everywhere, you can import the entire library into the namespace.
import (
. "github.com/samber/lo"
)
TIL. Crazy
I just hate the fact that Go is super simple and clear but people try to make it complex with this kind of stuff. :( Makes me sad.
Back when the Go team announced generics, I had a go (pun intended) at it: https://github.com/gtramontina/go-extlib -- might resurrect it one day. `lo` is pretty comprehensive though.