Flowdock
at(p1) public

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 Array#[]. (Array#at is slightly faster than Array#[], as it does not accept ranges and so on.)

   a = [ "a", "b", "c", "d", "e" ]
   a.at(0)     #=> "a"
   a.at(-1)    #=> "e"
Show source
Register or log in to add new notes.