Set operators

  • The set operators:

    • = set union
    • = set intersection
    • = set difference
    • × = cartesian product

    They were taught in high school and you should know them already


  • Note:  

    • The result of union (∪), intersection (∩) and set difference (−) operations is also a set !!!

      Example:

         {1, 2, 3}  {3, 4, 5} = {3} // 
      

      A set do not have duplicate elements !