(1) a = [:x, :y, :z] => [:x, :y, :z] (2) a[2..-1] => [:z] (3) a[3..-1] => [] (4) a[4..-1] => nil (5) a[5..-1] => nil (6) a[6..-1] => nil
I consider line (3) to be the odd one out here. Given a[3] returns nil, why shouldn't a[3..-1] also return nil? Gavin -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
