1.

What is a monad in scala? Explain

Answer»

A Monad can be DESCRIBED as an object that wraps another object. In SCALA, a class object is covered with a monad. Monads wrap objects and offer two operations - IDENTITY through units, and bind through flatMap.

A Monad determines the best way to APPLY the PROGRAM to underlying objects. A lot of recent Scala interview questions were based on this information.



Discussion

No Comment Found