Closure
Also written: closures
A function made inside another function that remembers the outer function's variables. gated() returns a closure that remembers its approver, and orders_of(customer) returns one that remembers the customer.
Also written: closures
A function made inside another function that remembers the outer function's variables. gated() returns a closure that remembers its approver, and orders_of(customer) returns one that remembers the customer.