Overview Clamps Packages CM Dictionary Clamps Dictionary Fomus
Next: Z , Previous: write-sfz , Home: Overview

Clamps Dictionary

X-Y

x-diff

Function

(x-diff seq remove &key (key #'identity) (test #'eq))

Return a list with the contents of remove removed from seq with optional :key and :test keys.

Arguments

seq List
remove List with elements to remove from seq
:key Function to call on all elements of seq to retrieve the element to check.
:test Function to compare the elems of remove with the retrieved elements of seq.

Examples

(x-diff '(2 3 4 5 8 9 11 12 15 18 20 23 29 36) '(3 5))
;; => (2 4 8 9 11 12 15 18 20 23 29 36)

(x-diff '((2 0.1) (3 0.4) (4 1.2) (5 0.5) (8 1.3)) '(3 5) :key #'first)
;; => ((2 0.1) (4 1.2) (8 1.3))

Author: Orm Finnendahl

Created: 2025-12-12 Fr 21:36

Validate