On Mon, Sep 8, 2008 at 4:56 PM, John Lapeyre <pdl at johnlapeyre.com> wrote:
> Any clues about whats going on here ?
> (%i1) mta(expr,v) := makelist(expr,inpart(v,1),1,inpart(v,2))$
(%i2) mtb(expr,v) := create_list(expr,inpart(v,1),1,inpart(v,2))$
> (%i3) mta(x,[1,2]);
> (%o3) [x,x]
>
What exactly are you trying to accomplish here? The second argument to
makelist or create_list should be a variable, not an expression or even an
expression evaluating to a variable. What is makelist(x,1,1,2) supposed to
mean? The bug here is that makelist is not giving an error! create_list is
correctly giving an error.
-s