4. Thereisanancient Mayan profecy thatstatesthatsomedayevery single human onearthwillhave done a tutorial aboutmonads and onthatpointthepurpose of theuniversewillhavebeenachieved and allhumanswillascenttoparadise
5. I’ll try to do my bit so thathumanity can reach nirvana
9. eternal indecomposable individual hierarchical and aggregated autonomic and independent can change itself according to some intrinsic laws infinite space, time matter, and motion are phenomenal atom human being soul god – first monad ultimate elements of the universe
19. monadictypeM java.util.List unitoperation value -> monad constructor/factory method [1, 2, 3] (Integer -> List<Integer>) bindoperation monad -> next monad, exposing its internal value for a transformation function any method in Groovy taking a closure as param [1, 2, 3].bind({ x -> [x, x + 1] }) == [1, 2, 2, 3, 3, 4]
21. Take a function and apply it to all values inside the monad Each invocation returns monad M<U> defintermediateMonads = collect { x -> f(x) } Extract U values from all intermediate M<U> monads and assemble the final M<U> monad intermediateMonads.flatten()
Individual -each has its own identityAutonomic and independent - interactions are only apparentCan change itself according to some intrinsic laws -but the change comes from insideHierarchical and aggregated – complex monads can be composed from simple monads