On Thu, 16 Jun 2005, jack wrote:
I was playing with the square() function in the list context. It
would be very useful if one could specify the equivalent of the
--cross option in the function, as in
list foo = x1 x2 x3
list foosq = square(foo,1) # x-products
This is added in CVS now. It's a _very_ fiddly parse, and to work
the command must contain no spaces:
OK: list foosq = square(foo,1)
Bad: list foosq = square(foo, 1)
The trouble is that the command-line parser in interact.c is
oriented to space-separated fields, so the second form above will
seem like
list foosq = square(foo,
plus an extraneous "1)".
Perhaps I can think of another way of approaching this...
Allin.