Autolisp versus Common Lisp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am reading a book called "Common Lisp A Gentle Introduction" by David S. Touretzky. Its a very good book for beginners in my opinion. It really does go into lisp & how computers deal with data & symbols in detail, but common lisp does have some functions that aren't included in Autolisp. Does anyone know if there is a website with a database somewhere that would tell you what the alternative to the functions that aren't included would be? For instance Common Lisp has a function called REDUCE that reduces the elements of a list into a single result.
(reduce #’+ ’(1 2 3)) => 6
What would the Autolisp equivalent be?
Also the function REMOVE-IF takes a predicate as input. REMOVE-IF removes all the items from a list that satisfy the predicate, and returns a list of what’s left.
> (remove-if #’numberp ’(2 for 1 sale))
(FOR SALE)
These are just a few examples, but I was wondering if there was a site that would tell you instead of using REMOVE-IF, in Autolisp you need to use ....