--0-771242198-11337143744970
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

I am not talking about screen scraping bits and pieces of information off web sites but rather having a library of combinatorial iterators wrapped up in classes: Combinations, Permutations, ... Debruijn Sequences. Ruby blocks & yield statements would be a great way to process each element of the combinatorial structure seperating the problems of 1) generating the next element of combinatorial structure from 2) processing each element of the combinatorial structure.

James Edward Gray II <james / grayproductions.net> wrote:  On Dec 2, 2005, at 9:31 AM, Dan Diebolt wrote:

> I would like to see an iterator in Ruby that took as one of its 
> arguments the On-Line Encyclopedia of Integer Sequences identifier 
> (A006037). And also an iterator in Ruby for the Combinatorial 
> Object Server:
>
> Combinatorial Object Server
> http://www.theory.cs.uvic.ca/~cos/cos.html
>
> Is that possible in Ruby?

You bet. Use the openuri library to grab the page, parse out what 
you need, and yield results. It's not even hard. Give it a try and 
you'll learn a lot about Ruby... ;)

James Edward Gray II





		
---------------------------------
 Yahoo! Personals
 Single? There's someone we'd like you to meet.
 Lots of someones, actually. Yahoo! Personals
--0-771242198-11337143744970--