Chris Paul
return newStockItem.right() .flatMap { checkFirstThing(newStockItem) } .flatMap { checkSecondThing(newStockItem) }
return checkFirstThing(newStockItem) .flatMap { checkSecondThing(newStockItem) }
Satyam Agarwal
either { checkFirstThing(newStockItem).bind() checkSecondThing(newStockItem).bind() }
A modern programming language that makes developers happier.