# Array.each_pair - debatably useful for walking adjacent pairs in an array.
# Given [1,2,3,4], yields up in pairs: [1,2], [2,3], [3,4].
# WRITTEN AS A MONKEYPATCH ONLY FOR SUCCINTNESS! Real programmers use modules.
# If I'm testing yield syntax, I like to build up a test block and store it off. Then pass it in anywhere blocks are accepted:
irb(main):001:0> h = {:a => 1, :b => 2}