summaryrefslogtreecommitdiff
path: root/control-flow.lisp
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-07-27 18:55:03 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-07-27 18:55:03 +0200
commit2e2b608c4f04f9a5591f354029c257453b6c31cf (patch)
treec70668a5980bced7c54a4c81c038bfe9fe8c5a74 /control-flow.lisp
parentab6010f8463ec21ed50de38ffad29e8fb6ba4867 (diff)
Add ASSOC{-IF{-NOT}}, COMPLEMENT, CONSTANTLY, COPY-TREE, IDENTITY, RASSOC{-IF{-NOT}}, and {N}SUBLIS.
Diffstat (limited to 'control-flow.lisp')
-rw-r--r--control-flow.lisp10
1 files changed, 10 insertions, 0 deletions
diff --git a/control-flow.lisp b/control-flow.lisp
new file mode 100644
index 0000000..0d380aa
--- /dev/null
+++ b/control-flow.lisp
@@ -0,0 +1,10 @@
+(defun identity (x)
+ x)
+
+(defun constantly (c)
+ (lambda (x)
+ (declare (ignore x))
+ c))
+
+(defun complement (function)
+ (lambda (x) (not (funcall function x))))