Symmetric difference: Difference between revisions
Content deleted Content added
adding GAP |
|||
Line 358:
=={{header|F Sharp|F#}}==
<lang fsharp>> let a =
let b =
val a : Set<string> = set ["Bob"; "John"; "Mary"; "Serena"]
Line 369:
<lang fsharp>> Set.union (Set.difference a b) (Set.difference b a);;
val it : Set<string> = set ["Jim"; "Serena"]</lang>
=={{header|GAP}}==
<lang gap>SymmetricDifference := function(a, b)
|