Sha256: 25370a8214f85ecfa2df8ed62a2b18de92c4ff1adef042b1ca3966e7b4a8d8a0

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

Arrays are ordered and integer-indexed collections
of objects. The indexes of Arrays are 0 based, meaning
that they start at 0. Negative indexes count back from
the last elements in the collection. -1 indicates the
last element, -2 is the second to last, and so on. An item
is retrieved from the collection using bracket notation ([]).

Example:
arr = [1, 2, 3]
arr[0]    #=> 1

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubytutor-0.1.1 lib/descriptions/Array.txt
rubytutor-0.1.0 lib/descriptions/Array.txt