Ruby Snippet
Ruby Array Methods Cheat Sheet
Difficulty: Easy
Ruby's `Enumerable` module gives `Array` a rich set of higher-order methods that replace most explicit loops. This snippet covers the trio you reach for daily (`map`, `select`, `reject`), reductions with `inject` / `reduce`, and grouping or slicing helpers like `group_by` and `each_slice`. Memorise these and most array transformations become a single chained pipeline.
