Map with Either Type
Either is right-biased, which means that Right is assumed to be the default case to operate on. If it is Left, operations like map, flatMap, … return the Left value unchanged
Right(12).map(_ * 2) // Right(24)
Left(23).map(_ * 2) // Left(23)