Skip to content
TurtleKitty edited this page May 18, 2019 · 1 revision

union

This procedure returns the union of two objects that support the union message.

(union (set 5 2 3) (set 11 7)) ; (set 7 5 2 3 11)

(def t1 (: foo 2 bar 3))
(def t2 (: bar 5 baz 7))

(union t1 t2)  ; (: foo 2 bar 5 baz 7)
(union t2 t1)  ; (: foo 2 bar 3 baz 7)
Clone this wiki locally