Bill Allombert on Mon, 6 Jan 2003 14:44:24 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: listput |
On Sun, Dec 29, 2002 at 03:16:25PM -0800, Justin C. Walker wrote: > > On Sunday, December 29, 2002, at 08:49 AM, Bernadette.PERRIN- > RIOU@math.u-psud.fr wrote: > > > > > I have a stupid problem with listput. The result does not seem to be a > > list, > > and so I can't do it again. I make a syntax mistake ? > > I believe that the return value of listput() is the value of the second > argument ('x'). Take a look at 'L' after your first call to listput(). Justin is right. listput is not a function, but a command which add something to a list. > > parisize = 4000000, primelimit = 500000 > > (17:21) gp > L=listcreate(10) > > %1 = List([]) > > (17:21) gp > L1=listput(L,2) > > %2 = 2 > > (17:21) gp > L2=listput(L1,3) > > *** incorrect type in listput. You should do L=listcreate(10) listput(L,2) listput(L,3) instead. Cheers, Bill.