Re: How to delete the last element of a SKILL list



the easiest way to do this is to build the list in the other
order. ask yourself why is the list in the order it is in, and
can it be built in the other order.

for example if you use push to add elements to a list
then you can use pop to pop them off. this is
very fast and memory efficient.

but in general to remove any element from a list with the
remove function.

x = (list 1 2 3 4 5 6 7)

now x has value (1 2 3 4 5 6 7)

if you want to remove 4 from x
(remove 4 x)

and x has value (1 2 3 5 6 7)

-jim

.



Relevant Pages

  • Re: How to delete the last element of a SKILL list
    ... For some reason, I need ... > can it be built in the other order. ... > for example if you use push to add elements to a list ... > very fast and memory efficient. ...
    (comp.cad.cadence)
  • Re: unwanted leading whitespace when using print
    ... push; ... Note the leading whitespace before 'Ja, ' and before 'En soms'. ... This is perl, v5.8.7 built for MSWin32-x86-multi-thread ...
    (comp.lang.perl.misc)
  • Re: Barry Allen alive
    ... Fudd's First Law of Opposition: If you push something hard enough, ... Prev by Date: ...
    (rec.arts.comics.dc.universe)
  • Re: XNews. One day at a time.
    ... Not good for much but still fun to push down a flight of stairs. ... Prev by Date: ...
    (microsoft.public.cert.exam.mcse)
  • Windows My Computer lockup
    ... reboot unless you push the power button. ... Steve ... Prev by Date: ...
    (microsoft.public.win2000.general)