apply.c

ds2.10/fluffos-2.16-ds05/compat/simuls/apply.c · 281 B

From the archive ds2.10.zip

Download the archive   « Back to the archive contents

/* 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...);
    }

Site Stats

Snippets: 1791
Codebases: 571