Chris James @quii.dev · Jan 3

I'm sure there are wiser heads than mine who know why: How come there is no way to go from iter.Seq2 to iterate.Seq built into the standard library for #golang? (or is there and im not finding it?) Do you really have to write something like this?

3 likes 2 replies

?

Replies

Hannah Apuan · Jan 3

This is Go's philosophy of prioritizing simplicity and explicitness over abstraction. I'm afraid there isn't. You can always write a helper function if you're going to be doing that alot though.

dr2chase · Jan 4

Might have a look at github.com/DeedleFake/x... I honestly thought that there was a golang.org/x/iter with these in it, but I did not see them.