Uniq with subclass of Array

e$B0J2<$N$h$&$K!"e(BArray e$B$N%5%V%/%i%9$Ke(B uniq
e$B$r8F$S=P$9$H!"e(BArray
e$B$N%$%s%9%?%s%9$,JV$C$F$-$^$9!#e(B

% ./ruby -ve ‘class A < Array; end; p A[1,2].uniq.class’
ruby 1.9.0 (2008-05-02 revision 16277) [i686-linux]
Array

1.8 e$B$G$O%5%V%/%i%9$N%$%s%9%?%s%9$,JV$C$F$-$^$9!#e(B

% ruby-1.8 -ve ‘class A < Array; end; p A[1,2].uniq.class’
ruby 1.8.7 (2008-05-02 patchlevel 5000) [i686-linux]
A

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs