Ariel Caplan
← All speaking RubyConf 2021 · November 10, 2021

The Audacious Array

What could be simpler than an array? Turns out Ruby turns it into a randomizer, 2D map, stack, queue, and set.

Video

Slides

About this talk

What could be simpler than the array? It’s just a list of indexed values, right?

Well, not so fast. Ruby reimagines what an array can be, turning it into a randomizer, a 2D map, a stack, a queue, and a mathematical set—complete with built-in utilities for searching and analyzing its contents.

Understanding arrays deeply is a powerful step forward in writing concise, expressive, semantic Ruby.