Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
|
|
@ -1,11 +1,9 @@
|
|||
import "./set" for Set
|
||||
|
||||
var symmetricDifference = Fn.new { |a, b| a.except(b).union(b.except(a)) }
|
||||
|
||||
var a = Set.new(["John", "Bob", "Mary", "Serena"])
|
||||
var b = Set.new(["Jim", "Mary", "John", "Bob"])
|
||||
System.print("A = %(a)")
|
||||
System.print("B = %(b)")
|
||||
System.print("A - B = %(a.except(b))")
|
||||
System.print("B - A = %(b.except(a))")
|
||||
System.print("A △ B = %(symmetricDifference.call(a, b))")
|
||||
System.print("A △ B = %(a.symDiff(b))")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue