From: zdennis Date: 2005-10-28T14:45:46+09:00 Subject: Re: Cleaner syntax for .map (is there already a way, or ruby2 idea?) nobuyoshi nakada wrote: > Hi, > > At Thu, 27 Oct 2005 21:07:03 +0900, > Trans wrote in [ruby-talk:162907]: > >>A shorthand for: >> >> people.every.email_addr >> >>But I like your [*]. Hmm... I maybe able to adjust above to use [:*] > > > I feel your "every" much cleaner than [*]. So... people = [ person1, person2, person3 ] emails = people.every.email_addr => [ 'test@me.com', 'test2@you.com', 'test3@us.com' ] # people still is [ person1, person2, person3 ] people.every!.nickname # people still is now [ 'Joey', 'Zeke', 'Flava Flav' ] ? Zach