W liie z czw, 16-10-2003, godz. 01:26, Eric Hodel pisze:

> You can also use reverse.  An Array is smart, reverse takes constant time.

VALUE
rb_ary_reverse(ary)
    VALUE ary;
{

    [...]

    while (p1 < p2) {
        tmp = *p1;
        *p1++ = *p2;
        *p2-- = tmp;
    }

Doesn't look like constant time for me.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak / knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/