- compress BLIST LISTprocedure
Returns a new list with elements taken from LIST with corresponding true values in the list BLIST.
(define nums '(99 100 110 401 1234)) (compress (map odd? nums) nums) ==> (99 401)
Returns a new list with elements taken from LIST with corresponding true values in the list BLIST.
(define nums '(99 100 110 401 1234)) (compress (map odd? nums) nums) ==> (99 401)