mitch
08/31/2021, 12:00 PMNullable.zip
but it doesn’t have the extension function public inline fun <A, B, Z> A?.zip(b: B?, fn: (A, B) -> Z): Z?
i’m quite sure arrow devs have a good reason behind this..?simon.vergauwen
08/31/2021, 12:10 PMA?
is available everywhere.
So it conflicts with all other zip
methods.
That’s the reason why “nullable” is the exception. Any extension on it conflicts with all other extension functions with the same name in the same package.simon.vergauwen
08/31/2021, 12:10 PMA?.zip
, but that conflicted with Either#zip
, Option#zip
etcmitch
08/31/2021, 12:12 PM