mud/fluffos-2.23-ds03/compat/simuls/apply.c
2020-09-06 05:43:07 -07:00

10 lines
265 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...);
}