-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Zio 746 zip and zipPar consistency across all data types #748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zio 746 zip and zipPar consistency across all data types #748
Conversation
@jdegoes , Can you please review PR and let me know if any changes needed. |
final def zip[E1 >: E, B](that: Exit[E1, B]): Exit[E1, (A, B)] = self <*> that | ||
|
||
/** | ||
* Zips the this result. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment needs to be fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
final def zipLeft[E1 >: E, B](that: Exit[E1, B]): Exit[E1, A] = self <* that | ||
|
||
/** | ||
* Zips the specified result. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
final def zipPar[E1 >: E, B](that: Exit[E1, B]): Exit[E1, (A, B)] = self <&> that | ||
|
||
/** | ||
* Zips the this result, in parallel. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for the 2 here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
self &&& that | ||
|
||
/** | ||
* A named alias for `&&&` or `<*>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can delete &&&
now that we have <*>
. I know Haskell uses &&&
but no reason for two symbols for the same operator.
@jadireddi Thank you for your work on this! |
* code changes for zip operator consistency between named and symbolic. * code formatted * code changes for zip and zipPar consistency. * fixed typo's * fixed the comments review comments.
#746