match: implement and*' in terms of
andmap'
This commit is contained in:
parent
7bb2cad8db
commit
ec1f11e18e
|
@ -41,12 +41,7 @@
|
||||||
(map (lambda (p) (f (car p) (cdr p))) ht-l))
|
(map (lambda (p) (f (car p) (cdr p))) ht-l))
|
||||||
|
|
||||||
(define (and* . vs)
|
(define (and* . vs)
|
||||||
(let loop ([r #t]
|
(andmap values vs))
|
||||||
[vs vs])
|
|
||||||
(cond
|
|
||||||
[(not r) r]
|
|
||||||
[(null? vs) r]
|
|
||||||
[else (loop (and r (car vs)) (cdr vs))])))
|
|
||||||
|
|
||||||
;; Produce a bool for every column in a set of rows, where #t means
|
;; Produce a bool for every column in a set of rows, where #t means
|
||||||
;; that every pat in that column is a Dummy.
|
;; that every pat in that column is a Dummy.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user