maplist(foo,a[i]) => error
map(foo,args(a[i])) => [foo(i)]
I'd think these should do the same thing, especially
since maplist does act like a "part" function in other
ways (e.g. in respecting inflag).
Logged In: YES
In 5.9.3cvs, maplist(foo, a[i]) => error and also map(foo,
a[i]) => error.
maplist(foo, a[i]) should yield [foo(i)] as suggested above.
map(foo, a[i]) should yield a[foo(i)] (by analogy with
I agree that this seems inconsistent:
(%i1) map (foo, bar (i, j, k));
(%i2) map (foo, bar [i, j, k]);
map: improper argument: bar[i,j,k]
-- an error. To debug this try: debugmode(true);
But since bar[i,j,k] is a mapatom, isn't this the expected behavior? To change this we would need to change the definition of a mapatom.
Was changing mapatom implicit in the previous comments, or...?
Log in to post a comment.