Removing nil from list

Discussion in 'Cadence' started by vtcad, May 8, 2006.

  1. vtcad

    vtcad Guest

    How do I remove an element from a list? I am trying to remove an
    element nil.

    thanks,
     
    vtcad, May 8, 2006
    #1
  2. a='(1 2 nil 3)
    a=remove(nil a) => (1 2 3)

    This removes all occurrences of nil from the list. There's also the
    destructive form:

    a=remd(nil a)

    Regards,

    Andrew.

    Andrew Beckett
    Principal European Technology Leader
    Cadence Design Systems, UK.
     
    Andrew Beckett, May 9, 2006
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.