Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to create a list that consists of multiple lists

Status
Not open for further replies.

autocadvba

Programmer
Jun 16, 2003
22
PH
please someone help me create a list that contains multiple lists...in AUTOLISP
 
You may have to check this as I don't exactly remember when the items get combined versus "list of a list"

(setq list1 '(1 2 3))
(setq list2 '("horse" "cow"))
(setq list1-2 (cons list1 (list list2))
(setq list3 '(3.3 "cat"))

(setq list1-3 (list list1 list2 list3))
;;or
(setq list1-3 (append list1-2 (list list3))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top