ary.at(index) â obj or nil
Instance Public methods
Returns the element at index
. A negative index counts from the
end of self
. Returns nil
if the index is out of
range. See also #[].
1 2 3 | a = [ "a" , "b" , "c" , "d" , "e" ] a.at( 0 ) #=> "a" a.at(- 1 ) #=> "e" |
Please login to continue.