How to find position of list

Discussion in 'AutoCAD' started by Adesu, Feb 1, 2005.

  1. Adesu

    Adesu Guest

    (setq stuff (list "a" "b" "c" "d" "e")) >>> ("a" "b" "c" "d" "e")
    (setq vl-position "c" stuff) >>> 2

    Now I want to find position 2 and then get "c",any help me,thanks
     
    Adesu, Feb 1, 2005
    #1
  2. Adesu

    Adesu Guest

    Oops ,sorry I forgot
    (nth 2 stuff)
     
    Adesu, Feb 1, 2005
    #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.