pike.git / lib / modules / Array.pmod

version» Context lines:

pike.git/lib/modules/Array.pmod:222:   //!   //! @seealso   //! @[column()]   array(array) columns(array x, array ind)   {    array(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(array|string) x) - { -  if (!sizeof(x)) return x; -  array ret=allocate(sizeof([array|string]x[0])); -  for(int e=0;e<sizeof([array|string]x[0]);e++) ret[e]=column(x,e); -  return ret; - } -  +    // diff3, complement to diff      //! Return the three-way difference between the arrays.   //!   //! @seealso   //! @[Array.diff()], @[Array.diff_longest_sequence()]   array(array(array)) diff3 (array a, array b, array c)   {    // This does not necessarily produce the optimal sequence between    // all three arrays. A diff_longest_sequence() that takes any number