Higher-order utilities in coffeescript