summaryrefslogtreecommitdiff
path: root/util.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2024-06-18 08:21:59 -0700
committercolin <colin@cicadas.surf>2024-06-18 08:21:59 -0700
commit06f8c9c96a1d13451276ded4e091175eafd5b4e9 (patch)
treed3d04f85552c7379be8b0c46341dbab37456ac13 /util.lisp
parent22686584f103d163a1e5f370aa06905ec5c3b4a4 (diff)
Add: def:fast for optimized function defs
Diffstat (limited to 'util.lisp')
-rw-r--r--util.lisp4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.lisp b/util.lisp
index 537d85d..3008865 100644
--- a/util.lisp
+++ b/util.lisp
@@ -34,3 +34,7 @@ YES is everything for which PRED is T, NO is everything else."
(string= muffer name :end2 (length muffer))
(string= muffer name :start2 (- (length (symbol-name name))
(length muffer)))))
+
+(defun lambda-opt-p (x)
+ (find x '(cl:&optional cl:&key cl:&aux cl:&allow-other-keys cl:&rest)
+ :test #'eq))