O'Reilly logo

Interpreting LISP: Programming and Data Structures, Second Edition by Gary D. Knott

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required