vector2set

SpecialNodes vector2set

input ports:
Name Type Description Optional

input

vector<?0>

input collection

no

output ports:
Name Type Description Optional

output

set<?0>

output collection

no

vector2set converts the input vector to a set with the same elements. Note that repeated elements in the list occur only once in the set – that is the nature of sets. The order of elements in the set is not affected by the ordering of the input vector; it is the collation order of the element type. For numbers, it is their magnitude when their bit pattern is interpreted as unsigned. For strings, it is lexicographic ordering. For all other objects, it is address ordering, and address ordering is not in general the same from run to run. Only unsigned integers, non-negative signed integers, and strings are "sorted" in the ordinary sense of the word by building a set over them.