Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added details about cartesian product
  • Loading branch information
SockRocks authored Mar 17, 2024
1 parent add17ad commit e6da22d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
+ The intersection of A and B is `A & B`
+ `A.powerSet()` calculates the powerset of A
+ `A - B` outputs the set difference
+ `A*B` calculates the cartesian product of the two sets (to calculate tripple products and higher use `A.cartesianProduct(*sets*)`
+ `A.complement()` returns the complement of A with the input universe
+ `A.setDisplayMode()` displays each element of A one by one by hitting enter
+ Lists and sets can be freely converted between eachother by calling `A.__list__()` to convert A to a list or calling Set(*list*) to convert the list to a set object

0 comments on commit e6da22d

Please sign in to comment.