Why is a Monad Like a Writing Desk?
Recorded at:
Great!
by
Matjaz Muhic
Nice!
by
Faisal Waris
Despite the presenters reservations, here is blog post that I hope will be helpful too:
fwaris.wordpress.com/2011/07/30/understanding-m...
Very good!
by
Paulo Pinto
I feel it is a video I can refer other people to, when they need to learn about monads.
Must watch!
by
vitalii voloshyn
m-tea question
by
Vladimir Vitvitskiy
((-> (return "me") (m-tea "you")))
We call m-tea with one parameter "you" (seems to be name) while we have declared this functions with two parameters. How does it work ?
Thanks
Re: m-tea question
by
Eric Scrivner
This is a convenience operator for composing "thread" a value through a series of functions. -> Uses the first value as the first parameter to the functions which follow it. There is also a variant ->> which uses the first value as the last parameter to the functions that follow it.
So
((-> (return "me") (m-tea "you")))
Is really be evaluated as:
((m-tea (return "me") "you"))




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think