Skip to main content

Set

A set

Written by Holly Conrad Smith

Use this to collect values — like usage names, parcel IDs, or property tags — into a group with no duplicates, when you only care whether something is present, not how many times it shows up or in what order.

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: a set

Inputs

Name

Abbreviation

Type

Access

Description

items

I

Any

List

the items to add to the set

Outputs

Name

Abbreviation

Type

Access

Description

set

S

Set

Item

the created set

How to

  1. Add the Set node.

  2. Feed in a list of items — duplicates are automatically dropped.

  3. The output is a set you can pass to Set Has, Intersect Sets, Union Sets, and the other set nodes, or convert back with Set to Array.

Did this answer your question?