union

There are other concepts named union. See the entire list.

union, function

def dash pure union(setA: long, setB: long): long
def process union(set: long): long

Returns the union of 64-sets, either as a binary function or as a process aggregator.

Example (binary union)

AB = union(flag(1), flag(2))
BC = union(flag(2), flag(3))

show scalar "Union" with union(AB, BC)

This outputs the following scalar:

Label Value
Union 14

Example (aggregator)

table T = with
  [| as V |]
  [| 1 |]
  [| 3 |]
  [| 5 |]

combined = union(flag(T.V))

show scalar "Combined" with combined

This outputs the following scalar:

Label Value
Combined 42

Remarks

The numeric result is the encoded 64-set value.

User Contributed Notes
0 notes + add a note