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

preview_player
Показать описание
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.
Рекомендации по теме