Skip to content

Instantly share code, notes, and snippets.

@dgadiraju
Last active May 14, 2017 05:14
Show Gist options
  • Select an option

  • Save dgadiraju/265247391466c38c2a1c3a932b04dd3c to your computer and use it in GitHub Desktop.

Select an option

Save dgadiraju/265247391466c38c2a1c3a932b04dd3c to your computer and use it in GitHub Desktop.
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