Closures
newGreeter = fn(greeting) {
return fn(name) { puts(greeting + " " + name); }
};
hello = newGreeter("Hello");
hello("dear, future Reader!");
newGreeter = fn(greeting) {
return fn(name) { puts(greeting + " " + name); }
};
hello = newGreeter("Hello");
hello("dear, future Reader!");