summaryrefslogtreecommitdiffstats
path: root/srfi-225.html
diff options
context:
space:
mode:
authorGravatar John Cowan 2021-08-15 22:44:59 -0400
committerGravatar John Cowan 2021-08-15 22:44:59 -0400
commitcb6cae4950d0af111760d9abfc88aa03fb211f0c (patch)
treeb0dcc4e1dd506a4a31ab4abc1f51709eedd1e027 /srfi-225.html
parentMN-W review (diff)
unfold, new issues
Diffstat (limited to 'srfi-225.html')
-rw-r--r--srfi-225.html21
1 files changed, 16 insertions, 5 deletions
diff --git a/srfi-225.html b/srfi-225.html
index b21acd1..678d840 100644
--- a/srfi-225.html
+++ b/srfi-225.html
@@ -34,17 +34,17 @@ of the object is. Such an object is called a <em>dictionary</em> in this SRFI.<
<h2 id="issues">Issues</h2>
-<p>dict-unfold: as you would think.</p>
<p>dict=?, dict&lt;?, etc. Compare dictionaries for equality, subset, etc.
A value comparator is passed in.</p>
-<p>dict-union(!), dict-intersection(!), etc.
-Functional and linear-update versions of these operations.</p>
+<p>dict-union(!), dict-intersection(!), dict-difference(!), dict-xor(!).</p>
-<p>dict-range=(!), dict-range<(!), etc. Return subsets whose keys are =, &lt;, etc.</p>
+<p>dict-range=(!), dict-range<(!), etc. Return subsets whose keys are =, &lt;, etc.
+of a provided value.</p>
-<p>-dict-fold/reverse (maybe)</p>
+<p>dict-open-mapping, dict-closed mapping, dict-open-closed-mapping, dict-closed-open-mapping.
+Returns subsets whose keys are in a certain interval specified by upper and lower bounds.</p>
<p>dict-min-key, dict-max-key: Returns the smallest and largest key in the dictionary.</p>
@@ -81,6 +81,17 @@ Consequently, previous examples don't affect later ones.
<p>Returns an empty dictionary of the type described by the DTD using <em>comparator</em> to specify the dictionary's equality predicate and its ordering predicate and/or hash function.</p>
<p>If the contents of <em>comparator</em> are inconsistent with the dictionary type, it is an error.
If the dictionary type does not accept a comparator, <code>#f</code> should be passed instead.</p>
+<p><code>(dict-unfold</code>&nbsp;<em>dtd comparator stop? mapper successor seed</em><code>)</code></p>
+<p>
+Create a new dictionary as if by <code>make-dictionary</code> using
+<em>dtd</em> and <em>comparator</em>. If the result of applying
+the predicate <em>stop?</em> to <em>seed</em> is true, return the dictionary.
+Otherwise, apply the procedure <em>mapper</em> to <em>seed</em>.
+<em>Mapper</em> returns two values, which are inserted into the dictionary
+as the key and the value respectively. Then get a new seed by
+applying the procedure <em>successor</em> to <em>seed</em>, and repeat
+this algorithm.
+</p>
<h3 id="predicates">Predicates</h3>
<p><code>(dictionary?</code>&nbsp;<em>dtd obj</em><code>)</code></p>
<p>Returns <code>#t</code> if <em>obj</em> answers <code>#t</code> to the type predicate stored in the DTD, and <code>#f</code> otherwise.</p>
es?id=670ce6c77a1a884cb8002e13cff380909dada3bc&follow=1'>Added libraw1394.postinst.in to list of distributed files.Gravatar aeb 3-3/+35 2000-11-23Add ldconfig in deb postinst for Debian policy conformance.Gravatar aeb 2-2/+17 2000-11-23Removed acconfig.h, which wasn't needed for some time.Gravatar aeb 1-13/+0 2000-11-22Added ieee1394.h header.Gravatar aeb 3-1/+38 2000-09-13Fix raw1394_start_iso_write() which uses wrong variable.Gravatar aeb 1-1/+1 2000-09-10Work around compiler warnings for int/ptr casts.Gravatar aeb 6-10/+20 2000-09-10Added control files for Debian packages.Gravatar aeb 6-8/+106 2000-09-01Added missing prototypes for iso send functions.Gravatar aeb 1-0/+7 2000-08-08Added raw1394_get_irm_id().Gravatar aeb 7-7/+39 2000-08-06Added support for isochronous sending.Gravatar aeb 3-0/+35 2000-07-05Added raw1394_reset_bus() call.Gravatar aeb 4-0/+23 2000-06-22- Set library version info in configure.in, use in src/Makefile.am.Gravatar aeb 4-2/+16 2000-06-15Update libtool version number.Gravatar aeb 2-2/+2 2000-06-14Added copyright headers.Gravatar aeb 6-0/+54 2000-06-11Added explicit AC_PROG_INSTALL call.Gravatar aeb 1-0/+1 2000-06-09Fix size of error field.Gravatar aeb 1-2/+2 2000-06-02Modified support for 32/64 bit environments, control struct fields have fixed...Gravatar aeb 7-43/+28 2000-05-28Added support for environments with 64 bit kernel and 32 bit userland.Gravatar aeb 8-7/+45 2000-04-27Fixed missing setting of ext code in raw1394_start_lock()Gravatar aeb 1-0/+1 2000-04-15Fixed lock transaction to actually return response value.Gravatar aeb 3-5/+11 2000-04-12Add userdata functions as news.Gravatar aeb 1-0/+4 2000-04-05Add userdata functions.Gravatar aeb 3-0/+18 2000-03-18Bump version number to 0.6.Gravatar aeb 3-5/+6 2000-03-18Mention byte order change.Gravatar aeb 1-0/+2 2000-03-18Mention SourceForge home.Gravatar aeb 1-1/+5