README.rdoc in cartesian-0.5.0 vs README.rdoc in cartesian-0.5.2

- old
+ new

@@ -1,8 +1,8 @@ = cartesian -* http://github.com/adrianomitre/cartesian +* http://adrianomitre.github.com/cartesian/website/index.html == DESCRIPTION: Provides methods for the calculation of the cartesian producted between two or more enumerable objects. Includes grid search optimization methods. @@ -23,16 +23,13 @@ require 'cartesian' foo = [1, 2] bar = ["a", "b"] Cartesian::product(foo, bar) #=> [[1, "a"], [1, "b"], [2, "a"], [2, "b"]] -or use the methods provided by the mixin in the Array classees - require 'cartesian' - foo = [1, 2] - bar = ["a", "b"] +or use the methods provided by the mixin in the Array class foo.cartesian(bar) #=> [[1, "a"], [1, "b"], [2, "a"], [2, "b"]] -which include the short and sweet _x_ method +which include the short'n'sweet _x_ method v = [] #=> [] for a,b in [1,2].x [3,4] v << [a,b] end #=> true v #=> [[1, 3], [1, 4], [2, 3], [2, 4]]