Component aif
You are here:
All Systems
/
araneida
/
utility
/
aif
(
in-package
:araneida
)
;;; Paul Graham, On Lisp, p191
(
defmacro
aif
(
test-form then-form &optional else-form
)
`
(
let
(
(
it ,test-form
)
)
(
if
it ,then-form ,else-form
)
)
)
;;; by analogy
(
defmacro
awhen
(
test-form &rest then-forms
)
`
(
let
(
(
it ,test-form
)
)
(
when
it ,@then-forms
)
)
)
Main page
New paste
|
List all pastes
|
Syndication
|
XML-RPC
|
Source
|
Requests Email
|
Administrate
|
Project home
Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.