What is a monad?

前端 未结 30 1608
太阳男子
太阳男子 2020-11-30 13:39

Having briefly looked at Haskell recently, what would be a brief, succinct, practical explanation as to what a monad essentially is?

I have found most expla

30条回答
  •  死守一世寂寞
    2020-11-30 13:57

    In practice, monad is a custom implementation of function composition operator that takes care of side effects and incompatible input and return values (for chaining).

提交回复
热议问题