Ruby Array - Index, Part 2

  • + 0 comments
    arr[-index]
    
    arr.first
    
    arr.last
    
    arr.take(n)
    
    arr.drop(n)