apply.c

v22.2b14/compat/simuls/apply.c · 265 B

From the archive beta.tar.gz

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