
Re: Idea for MAP function
I thought some functions.
Code:
(define (map+ func lst bool)
(if bool
(apply = (map func lst))
(map func lst))
)
(define (map-compare func lst value)
(apply = (cons value (map func lst)))
)
(define (map-predicate func lst bool)
(if bool
(for-all func lst)
(map func lst))
)
Which is corresponding ? or another function ?