From: ts Date: 2002-11-09T01:19:32+09:00 Subject: Re: Beginner Question (Idiomatic way to subset an array >>>>> "S" == Steve Tuckner writes: S> I guess it could be that then it would require any class that includes S> array Any class that includes Enumerable S> to have a constructor that accepts no arguments. Is that too big of a S> limitation? yes, pigeon% ruby -e 'Range.new' -e:1:in `initialize': wrong number of arguments (0 for 2) (ArgumentError) from -e:1:in `new' from -e:1 pigeon% Now pigeon% ruby -e 'a = (1..2).select {|i| i}; p a.type' Array pigeon% The type of the result is Array not Range Guy Decoux