unison
shown here for N = 3
Name | Type | Description | Optional |
---|---|---|---|
in0 |
?0 |
first comparand |
no |
in1 |
?0 |
second comparand |
no |
… |
|||
in N-1 |
?0 |
N th comparand |
no |
Name | Type | Description | Optional |
---|---|---|---|
output |
?0 |
outputs the unique input value, if all input values are the same. outputs nothing if the input values are not equal to one another. |
no |
unison
reads one value from each of its inputs, and outputs their value if they all have the same value. nothing is output if the input values are not equal.
-
For numbers, the comparison uses numerical value.
-
For strings, the comparison is conventional string equality (same length and contents).
-
For bitsets, the sets must be equal. It is an error if the comparands do not have the same capacity.
-
For all other types, the comparands are compared by address, meaning that they are equal if and only if they are one and the same object in memory.