Skip to main content

Remove from Set

Remove an item from a set

Written by Holly Conrad Smith

Use this to take an item out of a set, for example excluding a usage type or parcel ID you've already handled from further comparisons.

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: remove an item from a set

Inputs

Name

Abbreviation

Type

Access

Description

set

S

Set

Item

the set to remove from

item

I

Any

Item

the item to remove

Outputs

Name

Abbreviation

Type

Access

Description

set

S

Set

Item

the updated set

How to

  1. Add the Remove from Set node.

  2. Feed in a set and the item to remove.

  3. The output is the updated set. If the item wasn't in the set, nothing changes.

Did this answer your question?