From: "Hal E. Fulton" Date: 2003-06-03T07:45:24+09:00 Subject: Re: [OT] Re: Metakit for Ruby - Would you want it? ----- Original Message ----- From: "ahoward" Newsgroups: comp.lang.ruby To: "ruby-talk ML" Sent: Monday, June 02, 2003 4:08 PM Subject: Re: [OT] Re: Metakit for Ruby - Would you want it? > On Tue, 3 Jun 2003, Pit Capitain wrote: > > > If you're going The Ruby Way, why not > > > > table.select { |row| row.foo =~ /hello/i } > > > > :-) > > or even: > > relation.select(:field0, :field1){|tuple| tuple[:field0, :field1] === [/foo/, /bar/]} > > i actually have something which does the above using named fields in arrays. > it's very cool but slower than dirt ;-) Named fields? Did you consider a hash (or better a Struct)? Hal