- dict-for-each dto proc dict #!optional start endprocedure
Invokes proc on each key of dict 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 order specified by the dictionary's comparator; otherwise, they are processed in an arbitrary order. The start and end arguments specify the inclusive lower bound and exclusive upper bound of the keys (in the sense of the dictionary's comparator). They can provide additional efficiency when iterating over part of the dictionary if the dictionary is ordered. The procedure returns an unspecified value.
(define (write-key key value) (write key)) (dict-for-each dto write-key dict) ⇒ unspecified ; writes "135" to current output