Branch: Tag:

1999-07-27

1999-07-27 21:55:39 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

map, filter -> the global ones

Rev: lib/modules/Array.pmod:1.39

11:   constant splice = __builtin.splice;   constant transpose = __builtin.transpose;    + #if 1 + constant filter=predef::filter; + constant map=predef::map; + #else   mixed map(mixed arr, mixed fun, mixed ... args)   {    int e,s;
61:    }   }    +    mixed filter(mixed arr, mixed fun, mixed ... args)   {    int e;
89:    return ret[..d-1];    }   } + #endif      mixed reduce(function fun, array arr, mixed|void zero)   {