Lisp Flashcards

(1 cards)

1
Q

How does Lisp differ from other programming languages (such as ‘C’).
What is the fundamental datatype in Lisp? What is the fundamental
operation in Lisp?

A

Lisp differs from languages like C primarily because it is Homoiconic (code is data, represented as S-expressions), and everything is an expression that returns a value.

Fundamental Datatype: The Cons Cell (Pair), composed of a CAR and a CDR, which is used to build all lists and code structures.

Fundamental Operations: CONS (constructs a pair), CAR (gets the first element), and CDR (gets the rest of the list).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly