[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SRFI-1: suggestion for addition: LDIFF

This page is part of the web mail archives of SRFI 1 from before July 7th, 2015. The new archives for SRFI 1 contain all messages, not just those from before July 7th, 2015.

May I suggest the following addition to the SRFI-1 list library, Common Lisp's

I think a reasonable definition is:

(define (ldiff l subl)
   ((null? l) '())
   ((eq? (cdr l) subl) (list (car l)))
   (else (cons (car l)
	       (ldiff (cdr l) subl)))))

(I sent this as private email before, but am now sending it to the mailing list)