# NOT RUN {
# symmetrical difference compared to union and intersection
Set$new(1, 2, 3) %-% Set$new(3, 4)
(Set$new(1, 2, 3) | Set$new(3, 4)) - (Set$new(1, 2, 3) & Set$new(3, 4))
# ConditionalSets demonstrate the internal logic
ConditionalSet$new(function(x) x > 0) %-%
ConditionalSet$new(function(y) y == 0)
# }
Run the code above in your browser using DataLab