401
402
403
404
405
406
407
408
409
410 //************
411 // Either
412 val either1 : Either[Exception,Int] = Right(1)
413 val either2: Either[Exception, Int] = Right(2)
414
415 for{
416 one <- either1
417 two <- either2
418 } yield one + two