Module 02 Β· Collections & Blocks β Lesson 1 of 6 Β· ~11 min
Arrays
An array literal looks familiar
Ruby arrays look almost exactly like Swift's or JS's β square brackets, comma-separated, no type annotation required:
walkers = ["Ana", "Ben", "Cleo"]
Same object-everywhere rule from module 01 applies: walkers is an instance of Array, and every element is its own full object.