Get the first item of the list.
This function takes a list apart and returns the first element of the list. For example, if you had a list of points such as (1.0 2.0 3.0), the car function would return the first element of the list, or 1.0.
Example
| Code | Returns |
|---|---|
| (setq a '("first" "second" "third") | ("first" "second" "third") |
| (setq b (car a)) | "FIRST" |
Tell me about...
(setq symbol1 statement1 [symbol2 statement2] ...)
Programming Overview of LISP (LISt Processing) Language
| Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |