Skip to main content

Union Sets

Find the union of two sets

Written by Holly Conrad Smith

Use this to combine two groups into one, with duplicates automatically removed — for example, merging the usage types from two scenarios into a single master list.

Set vs. List: a List (array) keeps items in order and can hold duplicates — you access items by position, like "the 3rd item." A Set has no order and no duplicates — adding an item that's already there does nothing, and there's no "position" to ask for. Sets are for asking "is this here?" and for comparing groups of things; Lists are for ordered, step-by-step sequences.

Category: Sets

Kind: Operation

Description: find the union of two sets

Inputs

Name

Abbreviation

Type

Access

Description

set1

S1

Set

Item

the first set

set2

S2

Set

Item

the second set

Outputs

Name

Abbreviation

Type

Access

Description

union

U

Set

Item

the union of the two sets

How to

  1. Add the Union Sets node.

  2. Feed in two sets.

  3. The output is a new set containing every item from both, with duplicates removed.

Did this answer your question?