learning to sort lists with mapcar

Discussion in 'AutoCAD' started by kemp, Apr 9, 2004.

  1. kemp

    kemp Guest

    I have a list of lists and I want to pull out all of the 7th embedded list
    entries. Is there a way to do this with mapcar? I am using it to pull the
    first entries like this:
    (mapcar 'car data-list)
    and the second like this:
    (mapcar 'cdr data-list)
    etc. I might be able to use a foreach statement with nth 7 or something but
    i want to play with mapcar :)

    kemp
     
    kemp, Apr 9, 2004
    #1
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.