Dan Schmidt wrote:
> Am I reimplementing a wheel that already exists?  Can this be implemented
> (or designed) better?  Is this a useful enough concept to consider putting
> something like it in the core library?  Is it a monstrosity of codesize
> optimization, creating ugly and unreadable code?

Why not just use Enumerable#collect ?
This should work:
  id, name, height, weight, potato = $~[1..5].collect {|i| i.to_i }

Regards,

Michael


-- 
Michael Neumann
merlin.zwo InfoDesign GmbH
http://www.merlin-zwo.de