What is the difference between a monad and a closure? -
I am somewhat confused in reading the definition between the two. Can they actually pierce each other in terms of definition? Or am I completely lost? Thank you.
Closer, as is the habit of using the word, only work (or block of code, if If you want to) that you can behave like a piece of data and go to other functions, etc. (the "closed" bit is that wherever you finally call it, it behaves like if you It was originally defined). A monad (roughly) and more like context, in which the function can be indexed sequentially, and it controls how the data is passed from one function to the next.
Comments
Post a Comment