2016-02-19 17:56:09 +01:00

847 B

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern Monad monad /patterns/monad/ Presentation Tier
Java
Difficulty-Advanced

Intent

Monad pattern based on monad from linear algebra represents the way of chaining operations together step by step. Binding functions can be described as passing one's output to another's input basing on the 'same type' contract.

alt text

Applicability

Use the Monad in any of the following situations

  • when you want to chain operations easily
  • when you want to apply each function regardless of the result of any of them

Credits