Skip to content

Conversation

@martijnhoekstra
Copy link
Contributor

@scala-jenkins scala-jenkins added this to the 2.13.0-M5 milestone May 28, 2018
*
* Equivalent to `flatMap(id => id)`
*/
def flatten[A1 >: A, B1](implicit ev: B <:< Either[A1, B1]): Either[A1, B1] = flatMap(b => ev(b))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lrytz lrytz merged commit d99e890 into scala:2.13.x May 30, 2018


/** Returns the right value if this is right
* or this value if this if this is left
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this doubles

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants