© Gary D. Knott 2017

Gary D. Knott, Interpreting LISP, 10.1007/978-1-4842-2707-7_13

13. More Functions

Gary D. Knott

(1)Civilized Software Inc., Silver Spring, Maryland, USA

There are many built-in functions in LISP that are not logically required to be built in. They are there for convenience, and in some cases because they are faster that way. The three functions presented below are built-in functions that have definitions in terms of other more basic functions and special forms.

  • APPEND: function

    Defined by:

    (SETQ APPEND      (LAMBDA (X Y)              (COND ((EQ X NIL) Y)                    ((ATOM X) (CONS X Y))                    (T (CONS (CAR X) (APPEND (CDR X) Y))))))

This version of APPEND is slightly more general than the commonly found ...

Get Interpreting LISP: Programming and Data Structures, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.