diff options
| author | 2022-05-20 13:50:42 -0700 | |
|---|---|---|
| committer | 2022-05-20 13:50:42 -0700 | |
| commit | 29756b00c0642628bd7fd77e785685aaf6532ff0 (patch) | |
| tree | defee22bc719949a09a0125528cd30feb49afd7d | |
| parent | Link to official Github repo. (diff) | |
Fix two examples.
| -rw-r--r-- | srfi-225.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/srfi-225.html b/srfi-225.html index ec38acf..dd5982c 100644 --- a/srfi-225.html +++ b/srfi-225.html @@ -141,14 +141,14 @@ Consequently, previous examples don't affect later ones. then invokes the thunk <em>failure</em> and returns its result. The default value of <em>failure</em> signals an error; the default value of <em>success</em> is the identity procedure.</p> <blockquote><pre>(dict-ref aed dict 1 (lambda () '()) list) => - (1) ; Success wraps value in a list + (2) ; Success wraps value in a list (dict-ref aed dict 2 (lambda () '()) list) => () ; Failure returns empty list</pre></blockquote> <p><code>(dict-ref/default</code> <em>dto dict key default</em><code>)</code></p> <p>If <em>key</em> is the same as some key of <em>dict</em>, returns the corresponding value. If not, returns <em>default</em>.</p> -<blockquote><pre>(dict-ref/default aed dict 1 #f) => 1 -(dict-ref/default aed dict 1 #f) => #f</pre></blockquote> +<blockquote><pre>(dict-ref/default aed dict 1 #f) => 2 +(dict-ref/default aed dict 2 #f) => #f</pre></blockquote> <h3 id="update-procedures">Update procedures</h3> <p>All update procedures exist in pairs, with and without a final <code>!</code>. The descriptions apply to the procedures without <code>!</code>; |
