I understand map.
Here's the code I was trying to understand.
https://github.com/nakkaya/net-eval/blob/master/src/net_eval...
I'm not sure I do even now. I mean, I kinda know what different symbols and functions do, but I couldn't write it myself.
Here's the code I was trying to understand.
https://github.com/nakkaya/net-eval/blob/master/src/net_eval...
I'm not sure I do even now. I mean, I kinda know what different symbols and functions do, but I couldn't write it myself.
But the salient point here is there's really nothing magical about what's happening there.
Of course, the power of Clojure is that you actually can express this concept in the language. RMI looks pretty ugly by comparison.
Lets look at the macro, once you understand the basic macro concepts, witch are actually quite simple but still hard to understand. Its like a normal function, exept that the function code will be added to the var as data.