summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar John Cowan 2021-07-24 22:22:16 -0400
committerGravatar Arthur A. Gleckler 2021-07-26 16:10:31 -0700
commit7a6bce6a519816d96b429ac4b7bb180069d10c42 (patch)
tree92c4abc718c96da9cdddcf5499e870d7a1bb954d
parentDTO to DTD (diff)
dtd always first argument
-rw-r--r--srfi-225.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/srfi-225.html b/srfi-225.html
index 04a400e..a2cded1 100644
--- a/srfi-225.html
+++ b/srfi-225.html
@@ -127,13 +127,13 @@ Otherwise, returns two values, a dictionary that contains all the associations o
((3 . 4) (5 . 6))
1
2</pre></blockquote>
-<p><code>(dict-map!</code>&nbsp;<em>proc dtd dictionary</em><code>)</code></p>
+<p><code>(dict-map!</code>&nbsp;<em>dtd proc dictionary</em><code>)</code></p>
<p>Returns a dictionary similar to <em>dictionary</em> that maps each key of <em>dictionary</em> to the value that results from invoking <em>proc</em> on the corresponding key and value of <em>dictionary</em>.</p>
<blockquote><pre>(dict-map! (lambda (k v) (cons v k)) aed dict) =&gt; ((2 . 1) (4 . 3) (6 . 5))</pre></blockquote>
-<p><code>(dict-filter!</code>&nbsp;<em>pred dtd dictionary</em><code>)</code></p>
+<p><code>(dict-filter!</code>&nbsp;<em>dtd pred dictionary</em><code>)</code></p>
<p>Returns a dictionary similar to <em>dictionary</em> that contains just the associations of <em>dictionary</em> that satisfy <em>pred</em> when it is invoked on the key and value of the association.</p>
<blockquote><pre>(dict-filter! (lambda (k v) (= k 1)) aed dict) =&gt; ((1 . 2))</pre></blockquote>
-<p><code>(dict-remove!</code>&nbsp;<em>pred dtd dictionary</em><code>)</code></p>
+<p><code>(dict-remove!</code>&nbsp;<em>dtd pred dictionary</em><code>)</code></p>
<p>Returns a dictionary that contains all the associations of <em>dictionary</em> except those that satisfy <em>pred</em> when called on the key and value.</p>
<blockquote><pre>(dict-remove! (lambda (k) (= k 1)) aed dict) =&gt; ((3 . 4) (5 . 6))</pre></blockquote>
<p><code>(dict-search!</code>&nbsp;<em>dtd dictionary key failure success</em><code>)</code></p>
@@ -200,20 +200,20 @@ one for each of the four procedures:
<p><code>(dict-size</code>&nbsp;<em>dtd dictionary</em><code>)</code></p>
<p>Returns an exact integer representing the number of associations in <em>dictionary</em>.</p>
<blockquote><pre>(dict-size aed dict) =&gt; 3</pre></blockquote>
-<p><code>(dict-for-each</code>&nbsp;<em>proc dtd dictionary</em><code>)</code></p>
+<p><code>(dict-for-each</code>&nbsp;<em>dtd proc dictionary</em><code>)</code></p>
<p>Invokes <em>proc</em> on each key of <em>dictionary</em> and its corresponding value in that order. This procedure is used for doing operations on the whole dictionary. If the dictionary type is inherently ordered, associations are processed in the inherent order; otherwise in an arbitrary order. Returns an unspecified value.</p>
<blockquote><pre>(define (write-key key value) (write key))
(dict-for-each write-key aed dict) =&gt; unspecified
; writes &quot;135&quot; to current output</pre></blockquote>
-<p><code>(dict-count</code>&nbsp;<em>pred dtd dictionary</em><code>)</code></p>
+<p><code>(dict-count</code>&nbsp;<em>dtd pred dictionary</em><code>)</code></p>
<p>Passes each association of dictionary as two arguments to <em>pred</em> and returns the number of times that <em>pred</em> returned true as an an exact integer.</p>
<blockquote><pre>(dict-count aed dict (lambda (k v) (even? k))) =&gt; 0</pre></blockquote>
-<p><code>(dict-any</code>&nbsp;<em>pred dtd dictionary</em><code>)</code></p>
+<p><code>(dict-any</code>&nbsp;<em>dtd pred dictionary</em><code>)</code></p>
<p>Passes each association of <em>dictionary</em> as two arguments to <em>pred</em> and returns the value of the first call to <em>pred</em> that returns true, after which no further calls are made. If the dictionary type is inherently ordered, associations are processed in the inherent order; otherwise in an arbitrary order. If all calls return false, <code>dict-any</code> returns false.</p>
<blockquote><pre>(define (both-even? k v) (and (even? k) (even? v)))
(dict-any both-even? &#39;((2 . 4) (3 . 5))) =&gt; #t
(dict-any both-even? &#39;((1 . 2) (3 . 4))) =&gt; #f</pre></blockquote>
-<p><code>(dict-every</code>&nbsp;<em>pred dtd dictionary</em><code>)</code></p>
+<p><code>(dict-every</code>&nbsp;<em>dtd pred dictionary</em><code>)</code></p>
<p>Passes each association of <em>dictionary</em> as two arguments to <em>pred</em> and returns <code>#f</code> after the first call to <em>pred</em> that returns false, after which no further calls are made. If the dictionary type is inherently ordered, associations are processed in the inherent order; otherwise in an arbitrary order. If all calls return true, <code>dict-any</code> returns the value of the last call, or <code>#t</code> if no calls are made.</p>
<blockquote><pre>(define (some-even? k v) (or (even? k) (even? v)))
(dict-every some-even? &#39;((2 . 3) (3 . 4))) =&gt; #t
@@ -229,10 +229,10 @@ one for each of the four procedures:
<blockquote><pre>(dict-entries aed dict) =&gt; ; 2 values
(1 3 5)
(2 4 6)</pre></blockquote>
-<p><code>(dict-fold</code>&nbsp;<em>proc knil dtd dictionary</em><code>)</code></p>
+<p><code>(dict-fold</code>&nbsp;<em>dtd proc knil dictionary</em><code>)</code></p>
<p>Invokes <em>proc</em> on each association of <em>dictionary</em> with three arguments: the key of the association, the value of the association, and an accumulated result of the previous invocation. For the first invocation, <em>knil</em> is used as the third argument. Returns the result of the last invocation, or <em>knil</em> if there was no invocation. Note that there is no guarantee of a consistent result if the dictionary does not have an inherent order.</p>
<blockquote><pre>(dict-fold + 0 &#39;((1 . 2) (3 . 4))) =&gt; 10</pre></blockquote>
-<p><code>(dict-map-&gt;list</code>&nbsp;<em>proc dtd dictionary</em><code>)</code></p>
+<p><code>(dict-map-&gt;list</code>&nbsp;<em>dtd proc dictionary</em><code>)</code></p>
<p>Returns a list of values that result from invoking <em>proc</em> on the keys and corresponding values of <em>dictionary</em>.</p>
<blockquote><pre>(dict-map-&gt;list - aed dict) =&gt; (-1 -1 -1)</pre></blockquote>
<p><code>(dict-&gt;alist</code>&nbsp;<em>dtd dictionary</em><code>)</code></p>
a5aa7dad49587d1eb5?s=13&d=retro' width='13' height='13' alt='Gravatar' /> dmaas 3-18/+25 - changed return type of rawiso xmit/recv handlers from int to enum raw1394_iso_disposition - added an ioctl (RAW1394_ISO_QUEUE_ACTIVITY) to force an ISO_ACTIVITY event into the queue. This is needed for handling RAW1394_ISO_DEFER, to kick us out of the next read() instead of sleeping forever. - removed references to "8-byte" isochronous header - this is an OHCI-specific implementation detail git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@95 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-11-18fix cplusplus extern C blockGravatar ddennedy 1-4/+4 git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@94 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-11-18merged rawiso branchGravatar ddennedy 7-6/+488 git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@93 53a565d1-3bb7-0310-b661-cf11e63c67ab