Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SockRocks committed Mar 16, 2024
1 parent 1033d30 commit add17ad
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*********************Installation*********************
- Download the zipfiile
- copy all files into your current project directory
- invoke `from newsets import Set`
- Done!

*********************Simple Operations*********************
+ Declare a set `A = Set(1,2,3..., universe=[universal set])`
+ If B is another set to find the union just do `A + B`
+ The intersection of A and B is `A & B`
+ `A.powerSet()` calculates the powerset of A
+ `A - B` outputs the set difference
+ `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 add17ad

Please sign in to comment.