cl:remove-if-not   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/scheme.xtm

Implementation

(define (cl:remove-if-not pred? lst)
  (let remove-if-not ((lst lst)
          (result '()))
    (cond ((null? lst) (reverse result))
    ((pred? (car lst)) (remove-if-not (cdr lst) (cons (car lst) result)))
    (else (remove-if-not (cdr lst) result)))))
;@


Back to Index