https://kotlinlang.org logo
#arrow-contributors
Title
# arrow-contributors
s

stojan

12/12/2021, 11:02 AM
Option
and nullable types have a top level
zip
function (for combining values)....
Either
and
Validated
only have it as member function... any specific reason for this?
p

pablisco

12/12/2021, 2:15 PM
Zip for nullable can only be done as a top level function because it would be confusing if we have a nullable list or flow for instance. I imagine that it was done at the same time as Option.
👍 1
It would be great to have both options for all of the ADTs that we provide in arrow. Good catch. Worth a GH issue and PR 💯
s

simon.vergauwen

12/12/2021, 3:28 PM
Isn’t
Option
zip a member function? 🤔 Nullable cannot have it, because it conflicts with all types ike Pablisco mentions
p

pablisco

12/15/2021, 3:01 PM
8 Views