diff options
| author | 2021-11-23 14:21:56 -0500 | |
|---|---|---|
| committer | 2021-11-23 14:21:56 -0500 | |
| commit | a6fbdb2cfe97b41c4479170d80934f218a1553a8 (patch) | |
| tree | b538484cf28d6b09b0cf021529302fc6b4273697 /srfi/srfi-146-impl.scm | |
| parent | improved rationale (diff) | |
dto and find-update
Diffstat (limited to '')
| -rw-r--r-- | srfi/srfi-146-impl.scm | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/srfi/srfi-146-impl.scm b/srfi/srfi-146-impl.scm index b504e5f..ad6b629 100644 --- a/srfi/srfi-146-impl.scm +++ b/srfi/srfi-146-impl.scm @@ -1,11 +1,11 @@ -(define mapping-dtd +(define mapping-dto (let () - (define (prep-dtd-arg proc) - (lambda (dtd . args) + (define (prep-dto-arg proc) + (lambda (dto . args) (apply proc args))) - (define (mapping-alter* dtd dict key failure success) + (define (mapping-find-update* dto dict key failure success) (call/cc ;; escape from whole hashmap-search entirely, when success / failure ;; return something other than through passed in continuation procedures @@ -36,32 +36,32 @@ (k result)))))) new-dict))) - (make-dtd - dictionary?-id (prep-dtd-arg mapping?) + (make-dto + dictionary?-id (prep-dto-arg mapping?) dict-mutable?-id (lambda _ #f) - dict-empty?-id (prep-dtd-arg mapping-empty?) - dict-contains?-id (prep-dtd-arg mapping-contains?) - dict-ref-id (prep-dtd-arg mapping-ref) - dict-ref/default-id (prep-dtd-arg mapping-ref/default) - dict-set-id (prep-dtd-arg mapping-set) - dict-adjoin-id (prep-dtd-arg mapping-adjoin) - dict-delete-id (prep-dtd-arg mapping-delete) - dict-delete-all-id (prep-dtd-arg mapping-delete-all) - dict-replace-id (prep-dtd-arg mapping-replace) - dict-intern-id (prep-dtd-arg mapping-intern) - dict-update-id (prep-dtd-arg mapping-update) - dict-update/default-id (prep-dtd-arg mapping-update/default) - dict-pop-id (prep-dtd-arg mapping-pop) - dict-filter-id (prep-dtd-arg mapping-filter) - dict-remove-id (prep-dtd-arg mapping-remove) - dict-alter-id mapping-alter* - dict-size-id (prep-dtd-arg mapping-size) - dict-for-each-id (prep-dtd-arg mapping-for-each) - dict-count-id (prep-dtd-arg mapping-count) - dict-keys-id (prep-dtd-arg mapping-keys) - dict-values-id (prep-dtd-arg mapping-values) - dict-entries-id (prep-dtd-arg mapping-entries) - dict-fold-id (prep-dtd-arg mapping-fold) - dict-map->list-id (prep-dtd-arg mapping-map->list) - dict->alist-id (prep-dtd-arg mapping->alist) - dict-comparator-id (prep-dtd-arg mapping-key-comparator)))) + dict-empty?-id (prep-dto-arg mapping-empty?) + dict-contains?-id (prep-dto-arg mapping-contains?) + dict-ref-id (prep-dto-arg mapping-ref) + dict-ref/default-id (prep-dto-arg mapping-ref/default) + dict-set-id (prep-dto-arg mapping-set) + dict-adjoin-id (prep-dto-arg mapping-adjoin) + dict-delete-id (prep-dto-arg mapping-delete) + dict-delete-all-id (prep-dto-arg mapping-delete-all) + dict-replace-id (prep-dto-arg mapping-replace) + dict-intern-id (prep-dto-arg mapping-intern) + dict-update-id (prep-dto-arg mapping-update) + dict-update/default-id (prep-dto-arg mapping-update/default) + dict-pop-id (prep-dto-arg mapping-pop) + dict-filter-id (prep-dto-arg mapping-filter) + dict-remove-id (prep-dto-arg mapping-remove) + dict-find-update-id mapping-find-update* + dict-size-id (prep-dto-arg mapping-size) + dict-for-each-id (prep-dto-arg mapping-for-each) + dict-count-id (prep-dto-arg mapping-count) + dict-keys-id (prep-dto-arg mapping-keys) + dict-values-id (prep-dto-arg mapping-values) + dict-entries-id (prep-dto-arg mapping-entries) + dict-fold-id (prep-dto-arg mapping-fold) + dict-map->list-id (prep-dto-arg mapping-map->list) + dict->alist-id (prep-dto-arg mapping->alist) + dict-comparator-id (prep-dto-arg mapping-key-comparator)))) |
