- dict-every dto pred dictprocedure
Passes each association of dict as two arguments to pred and returns #f after the first call to pred that returns false, after which no further calls are made. If the dictionary type is inherently ordered, associations are processed in that order; otherwise, in an arbitrary order. If all calls return true, dict-every returns the value of the last call, or #t if no calls are made.
(define (some-even? k v) (or (even? k) (even? v))) (dict-every dto some-even? '((2 . 3) (3 . 4))) ⇒ #t (dict-every dto some-even? '((1 . 3) (3 . 4))) ⇒ #f