subscrmap, was: more mset hackery. Parallel assignment.



On 8/17/05, Barton Willis  wrote:

> My macsyma documentation says that the option variable
> "subscrmap" is obsolete. Maybe we should expunge it from
> Maxima.

OK, it turns out there are some share files which mention
subscrmap (demo/array.dem, demo/subscr.dem, and 
share/matrix/matfun.mac). These seem to run OK if simpargs
in src/simp.lisp is modified to cut out the (if ... merror (...))
(otherwise it barfs); incidentally cutting out the test has
no ill effects that i can see.

subscrmap seems to be intended to enable this construct:

M [L1, L2]  =>  [ M [i, j] ] for (i, j) in L1 cross L2

where M is a matrix and L1 and L2 are lists.
and you can also assign to elements of the resulting list via :: .

the subscrmap stuff is a little funky, doesn't work
without some hacking, and it's fairly limited in scope.
otoh it is interesting and relevant to the discussion about mset.

for what it's worth,
robert dodier