"trans." <tsawyer / gmail.com> wrote in message > itsme213 your Q class is promising. > > Sometime ago I put out a small challenge to do R like querying and per > element processing. See ruby-talk:116415 > > http://groups-beta.google.com/group/comp.lang.ruby/browse_thread/thread/8f36cdeb04738c0e/788e64d6ca0dc746#788e64d6ca0dc746 > > You'll notice Niklas Frykholm gave a nice solution Yes, I'd do roughly what he did to evaluate the queries. SomeObj # evaluate (query) What I wrote previously was to compose the queries themselves as 1st-class things. Query # compose (queries) Btw, my symbol and hash examples of queries [:cities] {:name=>"London"} were just sugar for blocks. Explicit blocks should be allowed too. [:cities]{|c| c.size > c.population.size_need} That would give your equivalent of list comprehensions. Not sure if I can contribute anything complete, tho... Does Ruby Carats do the same thing as Gabriele's extensions?