Branch: Tag:

2001-07-30

2001-07-30 10:48:49 by Johan Sundström <oyasumi@gmail.com>

Some whitespace trimming, some update to uniq2().

Rev: lib/modules/Array.pmod:1.54

134:   //! If @[cmp] is omitted, @[`>()] is used instead.   //!   //! @seealso - //! @[map()], @[sort()], @[`>()] + //! @[map()], @[sort()], @[`>()], @[dwim_sort_func], @[lyskom_sort_func]   //!   array sort_array(array foo, function|void cmp, mixed ... args)   {
459:    return transpose(res);   }    - //! Sort without + //! Sort without respect to number formatting (most notably leading + //! zeroes).   int dwim_sort_func(string a, string b)   {    if (a==b) return 0;
558:    }   }    + //! @decl array uniq(array a) + //! Perform uniq on an array: + //! aabbbcaababb -> abc +    //! Perform the same action as the Unix uniq command on an array, -  + //! that is, fold consecutive occurrences of the same element into + //! a single element of the result array: + //!   //! aabbbcaababb -> abcabab.   //!   //! See also the @[uniq] function.