pike.git / lib / modules / Array.pmod

version» Context lines:

pike.git/lib/modules/Array.pmod:3:   constant diff = __builtin.diff;   constant diff_longest_sequence = __builtin.diff_longest_sequence;   constant diff_compare_table = __builtin.diff_compare_table;   constant longest_ordered_sequence = __builtin.longest_ordered_sequence;   constant interleave_array = __builtin.interleave_array;      constant sort = __builtin.sort;   constant everynth = __builtin.everynth;   constant splice = __builtin.splice;   constant transpose = __builtin.transpose; -  + constant uniq = __builtin.uniq_array;   #if 1   constant filter=predef::filter;   constant map=predef::map;   #else   mixed map(mixed arr, mixed fun, mixed ... args)   {    int e,s;    mixed *ret;       if(mappingp(arr))
pike.git/lib/modules/Array.pmod:248:    while(start < length) bar[start]=foo[start++];       tmp=foo;    foo=bar;    bar=tmp;    }       return foo;   }    - array uniq(array a) - { -  return indices(mkmapping(a,a)); - } -  +    array columns(array x, array ind)   {    array ret=allocate(sizeof(ind));    for(int e=0;e<sizeof(ind);e++) ret[e]=column(x,ind[e]);    return ret;   }      array transpose_old(array x)   {    if (!sizeof(x)) return x;