Set Functions
Intersection
returns the intersection of two sets, preserving order of first set
Syntax:
Intersection(a: [T], b: [T]) -> [T]
Examples:
Intersection([1, 2, 3], [2, 3, 4]) = [2, 3]
Union
returns the union of two sets, preserving order of first set
Syntax:
Union(a: [T], b: [T]) -> [T]
Examples:
Union([1, 2, 3], [2, 3, 4]) = [1, 2, 3, 4]
Unique
returns the unique elements of a set
Syntax:
Unique(a: [T]) -> [T]
Examples:
Unique([1, 2, 1]) = [1, 2]