Last active
May 14, 2017 05:14
-
-
Save dgadiraju/265247391466c38c2a1c3a932b04dd3c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val os1 = Set( | |
| Order(1, "2017-01-01", 100, "COMPLETE"), | |
| Order(2, "2017-01-01", 20, "CLOSED") | |
| ) | |
| val os2 = Set( | |
| Order(2, "2017-01-01", 20, "CLOSED"), | |
| Order(3, "2017-01-01", 301, "PENDING"), | |
| Order(4, "2017-01-01", 202, "CLOSED"), | |
| Order(5, "2017-01-01", 3013, "COMPLETE") | |
| ) | |
| os1.union(os2) | |
| os1 | os2 | |
| os1.intersect(os2) | |
| os1 & os2 | |
| os1.diff(os2) | |
| os1 &~ os2 | |
| os2.diff(os1) | |
| os2 &~ os1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment