Skip to main content
Version: Next

Union Of Lists

Creates a list of unique values from two given lists

Description

Creates a list of unique values taken from two given lists.

The brick is supposed to be used to join lists of primitive types (like strings, numbers, booleans, and Cloud Objectss). If you need to unite the collections of non-primitive types (e.g. objects), we recommend using the Union Of Lists With Predicate brick. This way a complex condition could be defined.

Example:

  • inputs

    • first =[2, 3, 4, 2]
    • second =[1, 4, 7, 2]
  • outputs

    • result = [2, 3, 4, 1, 7]

Inputs

  • First (Object): The collection to unite. Could be in the form of List, Array and QueryResult
  • Second (Object): The collection to unite. Could be in the form of List, Array and QueryResult

Outputs

  • Result (Object): The new list of combined values
  • Error Flow (Error Flow): Triggered by providing unexpected type of the source