Created
November 6, 2016 07:42
-
-
Save smallgeek/fd022234cf8a62045ead4d36cc1431f4 to your computer and use it in GitHub Desktop.
exclusive or
This file contains 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
let xs1 = Set[Set[1;2;3]; Set[4;5;6]; Set[7;8;9]] | |
let xs2 = Set[Set[4;5;6]; Set[7;8;9]; Set[10;11;12]] | |
let union = | |
[xs1; xs2] | |
|> Set.unionMany | |
let intersect = | |
[xs1; xs2] | |
|> Set.intersectMany | |
Set.difference union intersect | |
|> printfn "%A" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment