Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added FN macro

  • Loading branch information...
commit 28736fb7fba02b0f97b92ffc0a00214bec7dde3a 1 parent 6d9399d
@adlai authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/utils.lisp
View
5 src/utils.lisp
@@ -2,6 +2,11 @@
(in-package :Eos)
+(defmacro fn (&body body)
+ "An abbreviation for some common lambda use-cases."
+ (let ((parameter (intern "_")))
+ `(lambda (,parameter) (declare (ignorable ,parameter)) ,@body)))
+
;;; This is taken from Arnesi's src/one-liners.lisp, and implements a
;;; more sophisticated version of PCL's WITH-GENSYMS.
Please sign in to comment.
Something went wrong with that request. Please try again.