Skip to content

Hut, hut, hike! Yikes! #148

@som-snytt

Description

@som-snytt

This sounds like a quarterback's calls in American football. There's also a pun on "Double or Nothing" in there.

scala> val right1 = Right(1)   : Right[Double, Int]
right1: Right[Double,Int] = Right(1)

scala> val left23 = Left(23.0) : Left[Double, Int]
left23: Left[Double,Int] = Left(23.0)

scala> val left42 = Left(42.0)
left42: scala.util.Left[Double,Nothing] = Left(42.0)

scala> for {
     | x <- right1
     | y <- left42
     | z <- left23
     | } yield x + y + z
res0: scala.util.Either[Double,String] = Left(42.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions