I think andih’s solution works great. Here is an alternate way because hey why not. It uses concat
and distinct
:
user> (distinct (concat '(1 2 3) '(2 3 4)))
=> (1 2 3 4)
I think andih’s solution works great. Here is an alternate way because hey why not. It uses concat
and distinct
:
user> (distinct (concat '(1 2 3) '(2 3 4)))
=> (1 2 3 4)