Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
> multiset(string) A = (< "John", "Serena", "Bob", "Mary", "Bob", "Serena" >);
|
||||
> multiset(string) B = (< "Jim", "Mary", "Mary", "John", "Bob", "Jim" >);
|
||||
|
||||
> A^B;
|
||||
Result: (< "Bob", "Serena", "Serena", "Mary", "Jim", "Jim" >)
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
> array(string) A = ({ "John", "Serena", "Bob", "Mary", "Serena", "Bob" });
|
||||
> array(string) B = ({ "Jim", "Mary", "John", "Jim", "Bob", "Mary" });
|
||||
> A^B;
|
||||
Result: ({ "Serena", "Serena", "Bob", "Jim", "Jim", "Mary"})
|
||||
|
||||
> Array.uniq((A-B)+(B-A));
|
||||
Result: ({ "Serena", "Jim" })
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
> mapping(string:int) A = ([ "John":1, "Serena":1, "Bob":1, "Mary":1 ]);
|
||||
> mapping(string:int) B = ([ "Jim":1, "Mary":1, "John":1, "Bob":1 ]);
|
||||
|
||||
> A^B;
|
||||
Result: ([ "Jim": 1, "Serena": 1 ])
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
> ADT.Set A = ADT.Set((< "John", "Serena", "Bob", "Mary", "Serena", "Bob" >));
|
||||
> ADT.Set B = ADT.Set((< "Jim", "Mary", "John", "Jim", "Bob", "Mary" >));
|
||||
> (A-B)+(B-A);
|
||||
Result: ADT.Set({ "Serena", "Jim" })
|
||||
Loading…
Add table
Add a link
Reference in a new issue