ruby: proverb: Array#each_cons is nice