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 which reminds me of this. I haven't looked at the possibility in depth, but I wonder if these two can be integrated? If you wanted to develop further I would linke to include in upcoming Ruby Carats release.