on-internet
← Community

How are functions curried?

Stack Overflow ·

I understand what the concept of currying is, and know how to use it. These are not my questions, rather I am curious as to how this is actually implemented at some lower level than, say, Haskell code. For example, when (+) 2 4 is curried, is a pointer to the 2 maintained until the 4 is passed in? Does Gandalf bend space-time? What is this magic?

Comments

Sign in or sign up to comment and upvote.

No comments yet.