projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.6.11.15:
[sbcl.git]
/
src
/
code
/
early-extensions.lisp
diff --git
a/src/code/early-extensions.lisp
b/src/code/early-extensions.lisp
index
91b9d00
..
c36c1ac
100644
(file)
--- a/
src/code/early-extensions.lisp
+++ b/
src/code/early-extensions.lisp
@@
-380,6
+380,14
@@
;; a constant as long as the new value is EQL to the old
;; value.)
))
;; a constant as long as the new value is EQL to the old
;; value.)
))
+
+;;; Return a function like FUN, but expecting its (two) arguments in
+;;; the opposite order that FUN does.
+(declaim (inline swapped-args-fun))
+(defun swapped-args-fun (fun)
+ (declare (type function fun))
+ (lambda (x y)
+ (funcall fun y x)))
\f
;;;; DEFPRINTER
\f
;;;; DEFPRINTER