Closures

newGreeter = fn(greeting) {
  return fn(name) { puts(greeting + " " + name); }
};

hello = newGreeter("Hello");

hello("dear, future Reader!");

Edit this page on GitHub