How to leverage internals of `collect`

I suppose whether or not something is more natural is a bit subjective. I would argue that digging into the internals of collect is perhaps less natural.

How about the map do syntax? See stevengj’s suggestion for a similar problem.

2 Likes