Set

Set -- the class of all sets.

Function for creating sets:

  • set
  • Operations on sets:

  • + -- union
  • Set - Set -- difference
  • * -- intersection
  • ** -- Cartesian product
  • # -- the number of elements
  • apply(Set,Function) -- applying a function to elements
  • elements -- a list of the elements
  • member -- whether something is a member
  • product -- multiply the elements
  • subset -- whether a set is a subset of another
  • subsets -- a list of the subsets
  • sum -- sum the elements
  • Go to main index.

    Go to concepts index.