summaryrefslogtreecommitdiff
path: root/control-flow.lisp
blob: 0d380aa6c7d0d5cc1f694ea54ab4c16e07ace689 (plain)
1
2
3
4
5
6
7
8
9
10
(defun identity (x)
  x)

(defun constantly (c)
  (lambda (x)
    (declare (ignore x))
    c))

(defun complement (function)
  (lambda (x) (not (funcall function x))))