import _apply_default from "./_apply.js";
var nativeMax = Math.max;
function overRest(n, r, i) {
	return r = nativeMax(r === void 0 ? n.length - 1 : r, 0), function() {
		for (var a = arguments, o = -1, s = nativeMax(a.length - r, 0), c = Array(s); ++o < s;) c[o] = a[r + o];
		o = -1;
		for (var l = Array(r + 1); ++o < r;) l[o] = a[o];
		return l[r] = i(c), _apply_default(n, this, l);
	};
}
var _overRest_default = overRest;
export { _overRest_default as default };
