filmov
tv
Pair Up and Compare Every Two Items in a List with Ruby

Показать описание
In this video, I show a clean and quick one-liner for enumerating a pairing of every two consecutive items in a list using Ruby. This is a great way to set up a data transformation or to find an interesting data point by comparing subsequent elements.