> +Note that only the first term of an C<X> operator may reasonably be
> +an infinite list.
Now all we need is a variant that does the diagonal order and we'll be
home and dry.


'a'..* diagX 1..*

->

['a', 1],
['a', 2],
['b', 1],
['a', 3],
['b', 2],
['c', 1],
['a', 4],
['b', 3],
['c', 2],
['d', 1],
and so on.

-- 
Every program eventually reaches a point where it becomes harder to make
a simple change than to rewrite the program from scratch. Unfortunately,
when this point is reached, it is far too late to consider rewriting it.
http://surreal.istic.org/               They knew about the decepticons.

Attachment: pgpjxp76AnMpm.pgp
Description: PGP signature

Reply via email to