From: Sam Gentle Date: 2006-09-25T18:41:20+09:00 Subject: Re: How to use iterator for access to multiple elements? On 9/25/06, Sven wrote: > Hi, > > I want to write a function that calculate the time difference between > two following elements in an array. But then I need access to both > elements in this array. Have a look at Enumerator#each_slice and Enumerator#each_cons Sam