Closed mpurland closed 8 years ago
I like the name since left
and right
is short to reference, what do you think?
Scala's Either type has left
but it returns a LeftProjection. Perhaps we could do the same but have a LeftProjection that is a Generator to use in a "for in".
Scala's For-comprehensions are miles ahead of anything I think swift has to offer. If you're cool with this, I am too.
:boat:
This is good to merge, but before I do is there another name you'd like to give to these partial projection functions? Even Haskell doesn't have great names for these things.