Remix.run Logo
0x696C6961 4 days ago

For context, here's the existing Map signature from the linked library:

    func Map[A, B any](in <-chan Try[A], n int, f func(A) (B, error)) <-chan Try[B]
Are you suggesting that this channel based signature is significantly easier to understand than the one I shared?
eweise 4 days ago | parent [-]

No, it was more of a general comment that once Go added support for generics, doing functional style programming starts to look as complex (or more actually) than languages that built support from the beginning.

0x696C6961 4 days ago | parent [-]

Which part of the signature are you struggling with? Maybe I can help you understand.