# NOT RUN {
# Set of integers
Set$new(1:5)
# Set of multiple types
Set$new("a", 5, Set$new(1))
# Each Set has properties and traits
s = Set$new(1,2,3)
s$traits
s$properties
# Elements cannot be duplicated
Set$new(2, 2) == Set$new(2)
# Ordering does not matter
Set$new(1, 2) == Set$new(2, 1)
# }
Run the code above in your browser using DataLab