From: ts Date: 2002-01-21T01:31:46+09:00 Subject: Re: Coding challenge :-) >>>>> "D" == David Alan Black writes: D> http://www.rubygarden.org/ruby?CodingChallenge0001 This must work ? pigeon% cat c.rb #!/usr/bin/ruby require 'coll' p ACollection.new("a-c,g-h,k,x-y,aa-ac").expanded p ACollection.new("y,x,a,b,ab,c,g,h,k,aa,ac").compacted pigeon% pigeon% c.rb "a,b,c,g,h,k,x,y,aa,ab,ac" "a-c,g-h,k,x-y,aa-ac" pigeon% but I don't like the algorithm Guy Decoux