Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Cadence > Re: Deleting an...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 6 Topic 3987 of 4373
Post > Topic >>

Re: Deleting an element

by Andrew Beckett <andrewb@[EMAIL PROTECTED] > May 8, 2008 at 10:47 AM

S. Badel wrote, on 05/06/08 13:38:
> 
>> rplacd(rplacd(nthcdr(i-1 lst) nthcdr(i+1 lst))
> 
> woops, typo
> 
> rplacd(nthcdr(i-1 lst) nthcdr(i+1 lst))

Also, you should consider whether a list is the right data structure if
you're 
deleting stuff from it - especially if removing elements based on a
position in 
the list as in Stéphane's example above.

If it's unordered, perhaps a hash (an "association table" in SKILL
terminology) 
makes more sense - as created by makeTable. You can also remove() elements
from 
tables.

Andrew.
 




 6 Posts in Topic:
Deleting an element
nour <nour.laouini@[EM  2008-05-05 08:37:44 
Re: Deleting an element
Riad KACED <riad.kaced  2008-05-05 12:33:38 
Re: Deleting an element
danniel <danniel@[EMAI  2008-05-06 00:26:01 
Re: Deleting an element
"S. Badel" <  2008-05-06 13:35:55 
Re: Deleting an element
"S. Badel" <  2008-05-06 14:38:51 
Re: Deleting an element
Andrew Beckett <andrew  2008-05-08 10:47:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 21:12:13 CST 2008.