Nyquist / XLISP 2.0  - 
Contents |
Tutorials |
Examples |
Reference
set-difference
  | Type: | - | Lisp function (closure) | 
  | Source: | - | xm.lsp | 
Syntax
- (set-difference list1 list2)
- listN - a list of symbols or numbers
 returns - the set-difference of list1 and list2
 
In Nyquist, 'set-difference' is implemented as a Lisp function:
(defun set-difference (a b)
  (remove-if (lambda (elem) (member elem b)) a))
Description
The 'set-difference' function computes the
set-difference of two lists. The result is a list
containing all elements that appear in only one of both lists.
Examples
  Back to Top
Nyquist / XLISP 2.0  - 
Contents |
Tutorials |
Examples |
Reference