You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, it would be beneficial to add an alternative version of this syntax to allow returning a result of type F[A] if the condition is true, and otherwise returning a default value.
Currently, the cats has a syntax
whenA
with the signature:However, it would be beneficial to add an alternative version of this syntax to allow returning a result of type
F[A]
if the condition is true, and otherwise returning a default value.Proposed Signature:
It is possible with a different name.
This syntax will provide more flexibility in using conditional expressions
The text was updated successfully, but these errors were encountered: