cl:delete   scheme


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

Implementation

(define (cl:delete obj lst)
  (let delete ((lst lst))
    (cond ((null? lst) '())
    ((equal? obj (car lst)) (delete (cdr lst)))
    (else
     (set-cdr! lst (delete (cdr lst)))
     lst))))
;@


Back to Index

Similar Entries