[Top][All Lists]

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

Re: remove sublist

From: Emanuel Berg
Subject: Re: remove sublist
Date: Thu, 12 Apr 2018 19:43:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Eli Zaretskii wrote:

>> (require 'cl-lib)
>> (defun drop-sublist (l subl)
>>   "Every element of L that isn't also in SUBL."
>>   (cl-remove-if (lambda (e) (member e subl)) l) )
> The future is here:
>   (require 'seq)
>   (seq-difference '(a b e f o a g) '(a e))
>   => (b f o g)

Added "drop drop-sublist" to my TODO file.

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]