A.1.1. Using Boolean Operations with Lists

You can perform Boolean operations on lists returned by the query functions:

For example,

list-1 = '(1 2 3 4)
list-2 = '(1 5 6)
list-3 = '(1 4 7)

then:

(list-union list-1 list-2 list-3) = '(1 2 3 4 5 6 7)
(list-intersection list-1 list-2 list-3) = '(1)
(list-subtract list-1 list-2) = '(2 3 4)

Release 18.2 - © ANSYS, Inc. All rights reserved.