577ea4f781b3

beast: Update site.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 12 Aug 2016 02:23:23 +0000
parents 1ce97acb6755
children 6bb6ccd99231
branches/tags (none)
files beast/usage/index.html

Changes

--- a/beast/usage/index.html	Fri Aug 12 02:18:53 2016 +0000
+++ b/beast/usage/index.html	Fri Aug 12 02:23:23 2016 +0000
@@ -78,8 +78,9 @@
 <p>In the end it's just CLOS though, so if you want to add some <code>:documentation</code> or
 use <code>:allocation :class</code> then go nuts!</p>
 <h3 id="aspect-type-predicates">Aspect Type Predicates</h3>
-<p>Beast also defines an <code>aspect?</code> predicate for each aspect, which comes in handy
-when using higher-order functions:</p>
+<p>When you define an aspect named <code>foo</code> Beast also defines a <code>foo?</code> predicate that
+returns <code>(typep object 'foo)</code>, which comes in handy when using higher-order
+functions:</p>
 <div class="codehilite"><pre><span class="p">(</span><span class="nb">defun</span> <span class="nv">whats-for-dinner?</span> <span class="p">()</span>
   <span class="p">(</span><span class="nb">remove-if-not</span> <span class="nf">#'</span><span class="nv">edible?</span> <span class="p">(</span><span class="nv">container/contents</span> <span class="vg">*fridge*</span><span class="p">)))</span>
 </pre></div>