0cf1ef232b1c
Docs
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Mon, 25 Sep 2017 20:47:21 -0400 |
parents | 126034bff1da |
children | 280b721cfa9f |
branches/tags | (none) |
files | DOCUMENTATION.markdown |
Changes
--- a/DOCUMENTATION.markdown Mon Sep 25 20:47:10 2017 -0400 +++ b/DOCUMENTATION.markdown Mon Sep 25 20:47:21 2017 -0400 @@ -472,6 +472,30 @@ +### `NEST` (macro) + + (NEST &REST FORMS) + +Thread the given forms, putting each as the body of the previous. + + Example: + + (nest (multiple-value-bind (a b c) (foo)) + (when (and a b c)) + (multiple-value-bind (d e f) (bar)) + (when (and d e f)) + (do-something)) + + macroexpands to: + + (multiple-value-bind (a b c) (foo) + (when (and a b c) + (multiple-value-bind (d e f) (bar) + (when (and d e f) + (do-something))))) + + + ### `WHEN-FOUND` (macro) (WHEN-FOUND (VAR LOOKUP-EXPR)