Here’s a few different takes on currying functions by extending the Function object, for JavaScript and ActionScript 2 (if using for ActionScript, use _global[“Function”].prototype instead of Function.prototype).