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
$ scala
Welcome to Scala2.12.1 (JavaHotSpot(TM) 64-BitServerVM, Java1.8.0_102).
Type in expressions for evaluation. Ortry:help.
scala>Left(23).map(_ *2)
<console>:12:error: value * is not a member of NothingLeft(23).map(_ *2)
The text was updated successfully, but these errors were encountered:
The 2.12.1 Scaladoc page for Either includes the following example:
{code}Left(23).map(_ * 2) // Left(23){code}
But this example does not compile:
The text was updated successfully, but these errors were encountered: