Skip to content

Language Features Covered in CSCI 316

  • Cons cell representation - fundamental list structure in Lisp; lists are built from cons cells. We will convert lists to their cons cell representatoin, and vice versa
  • NIL = () = only falsey value - the empty list and false are equivalent in Lisp
  • Lists, atoms, numbers, symbols - basic data types
  • first, rest, second, car, cdr, composite functions like caar, caddr
  • list, append, cons
  • length, null, atom, member, endp - list predicates and operations
  • (defun varname (args) ...) - defining regular named functions
  • setf - setting variable values
  • Control flow: or, and, cond, if, not
  • numberp, integerp, realp, evenp, oddp, rationalp, floating-point-p
  • symbolp, plusp, minusp, zerop, typep '<type>, consp, atom
  • eq, eql, equal, = - different equality tests
  • let, let* - local variable binding
  • funcall - calling functions dynamically
  • lambda - anonymous functions
  • Sharp quote notation (#') - reader macro for function references
  • mapcar, remove-if, remove-if-not (in Common Lisp)
  • map, filter (in Scheme)
  • set-difference - set operations on lists