rebellion icon indicating copy to clipboard operation
rebellion copied to clipboard

Add multiset-remove-all

Open jackfirth opened this issue 5 years ago • 0 comments

Signature:

(multiset-remove-all [set multiset?] [elements (sequence/c any/c)]) -> multiset?

Examples:

> (multiset-remove-all (multiset 1 1 1 2 2 3 3 3) (list 1 2 3 2))
(multiset 1 1 3 3)

Optionally, it can include some optimizations in the case where elements is a set or multiset.

jackfirth avatar Nov 08 '19 05:11 jackfirth