From: rio4ruby Date: 2007-08-19T01:55:08+09:00 Subject: Re: How do you print the first 5 records in an array? On Aug 18, 4:09 am, Konrad Meyer wrote: > One idea comes to mind: > > @people.inject([]){|a,p|a<

> Anyone wanna throw in callcc too? You could use Rio for this problem: require 'rio' rio(?-) < @people[0...5].join($/) + $/ ;)