Skip to content

Commit

Permalink
Slightly expand doc of APPLY-TERM and APPLY-TERM*.
Browse files Browse the repository at this point in the history
Mention that these two utilities extend CONS-TERM and CONS-TERM* to lambda
expressions.
  • Loading branch information
acoglio committed Oct 14, 2017
1 parent a7846ac commit d8339ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions books/kestrel/utilities/terms.lisp
Expand Up @@ -112,6 +112,9 @@
:long
"<p>
If a lambda expression is applied, a beta reduction is performed.
</p>
<p>
This utility extends @(tsee cons-term) to lambda expressions.
</p>"
(cond ((symbolp fn) (cons-term fn terms))
(t (subcor-var (lambda-formals fn) terms (lambda-body fn))))
Expand All @@ -126,6 +129,9 @@
"<p>
If a lambda expression is applied, a beta reduction is performed.
</p>
<p>
This utility extends @(tsee cons-term*) to lambda expressions.
</p>
@(def apply-term*)"
(defmacro apply-term* (fn &rest terms)
`(apply-term ,fn (list ,@terms))))
Expand Down

0 comments on commit d8339ae

Please sign in to comment.