Subject: [ruby-talk:24456] Range in Hash array?
From: puzzled186 hotmail.com
Date: Wed, 7 Nov 2001 06:26:13 +0900
I'd like to be able to do something like:
{1..100=>"a",101..300=>"c", 500..1000=>"r"}
The syntax accepts it, but it doesn't behave the way I'd like (always
comes up nil).
Anyway to pull this off (currently using a case statement).
TIA