fluffos/compat/simuls/apply.c
2014-11-20 02:47:08 -08:00

9 lines
261 B
C

/* Like evaluate(), but expand out an array of arguments. No longer necessary
because of the ... syntax */
mixed apply(mixed f, mixed *arr...) {
if (sizeof(arr) && arrayp(arr[<1]))
arr = arr[0..<2] + arr[<1];
return evaluate(f, arr...);
}