Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Another way to think of currying is that it creates a scoping that lasts for longer than the lifetime of the function in which it is defined.   That is, the returned function from make_addX retains the scoping defined by the running of make_addX long after make_addX has finished executing.

 All All of this is part of the notion of a function's "closure", a topic we will discuss more formally very soon,

...