Question: "subsop" in "procedure" cannot work, weird!

HI, all,

I found a weird problem:

When I used the subsop separately, it work fine. But when it was put in a procedure, then it cannot work. So weird!

For example:

>L:=[x,y,z,d];

                            L:=[x,y,z,d]

>L:=subsop(1=NULL,L);

                           L:=[y,z,d]

>L:=subsop(1=NULL,L);

                           L:=[z,d]

>L:=subsop(1=NULL,L);

                           L:=[d]

 

However, when I put the subsop in a procedure, it cannot work:

>F:=proc(L)

>L:=subsop(1=NULL,L);

>end proc;

>L:=[x,y,z,d];

                    L:=[x,y,z,d]

>F(L);

Error, (in F)illegal use of a formal parameter

----------------------------------------------------------------

 

Many thanks.

Please Wait...