pike.git / lib / modules / Array.pmod

version» Context lines:

pike.git/lib/modules/Array.pmod:1:   #define error(X) throw( ({ (X), backtrace()[0..sizeof(backtrace())-2] }) )      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 sort = __builtin.sort; + constant everynth = __builtin.everynth; + constant splice = __builtin.splice; + constant transpose = __builtin.transpose;      mixed map(mixed arr, mixed fun, mixed ... args)   {    int e;    mixed *ret;       if(mappingp(arr))    return mkmapping(indices(arr),map(values(arr),fun,@args));       if(multisetp(arr))
pike.git/lib/modules/Array.pmod:214:    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(array x) + array transpose_old(array x)   {    if (!sizeof(x)) return x;    array ret=allocate(sizeof(x[0]));    for(int e=0;e<sizeof(x[0]);e++) ret[e]=column(x,e);    return ret;   }      // diff3, complement to diff (alpha stage)      array(array(array(mixed))) diff3(array mid,array left,array right)