On Wed, 2006-11-22 at 07:36 +0900, Pete Yandell wrote:
> I'm surprised nobody has suggested:
> 
>    a.zip(a).flatten[1..-2]

I'm surprised nobody has suggested

  require 'enumerator'

  ary.enum_cons(2).entries.flatten


Cheers,
Daniel