Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Set/Smalltalk/set.st
Normal file
20
Task/Set/Smalltalk/set.st
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#(1 2 3) asSet union: #(2 3 4) asSet.
|
||||
"a Set(1 2 3 4)"
|
||||
|
||||
#(1 2 3) asSet intersection: #(2 3 4) asSet.
|
||||
"a Set(2 3)"
|
||||
|
||||
#(1 2 3) asSet difference: #(2 3 4) asSet.
|
||||
"a Set(1)"
|
||||
|
||||
#(1 2 3) asSet includesAllOf: #(1 3) asSet.
|
||||
"true"
|
||||
|
||||
#(1 2 3) asSet includesAllOf: #(1 3 4) asSet.
|
||||
"false"
|
||||
|
||||
#(1 2 3) asSet = #(2 1 3) asSet.
|
||||
"true"
|
||||
|
||||
#(1 2 3) asSet = #(1 2 4) asSet.
|
||||
"false"
|
||||
Loading…
Add table
Add a link
Reference in a new issue