From the course: Learning AutoLISP & Visual LISP

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

List and dotted pairs overview

List and dotted pairs overview - AutoCAD Tutorial

From the course: Learning AutoLISP & Visual LISP

Start my 1-month free trial

List and dotted pairs overview

- [Instructor] As mentioned at the outset, LSP stands for list processing. Working with lists effectively really is going to make the difference, whether or not we're proficient with LSP. As lists play such a critical role within the language we're not going to be able to cover all the list management and manipulation functions that are available to us, but we're going to provide a basic overview. Really creating the lists in LSP are easy. First off, you can use the simple function LIST. Let's create one. I'm going to create a variable, it's going to store the list. We'll call this LIST1, and we're just going to call the function LIST. The list is going to contain two numbers. And a list can really contain any value that we want. I'm going to inspect it and thereby run the code, and there's our list, parentheses one two. Another way that's even possibly easier is to simply use a quotation mark, and then write the list as you see fit. It's a little bit more graphic in the visual…

Contents