[plt-scheme] How to perform a union between two lists?

From: Eli Barzilay (eli at barzilay.org)
Date: Sun May 6 20:41:28 EDT 2007

On May  6, Grant Rettke wrote:
> Hi folks,
> 
> What is the best way to perform a union between two lists?

Simple, and not too efficient:

  (append l1 (remv* l1 l2))

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.