List Operations
Create List Node
Create a list from its constituent elements
The create list node allows you to transform individual items to a list format. For example, passing in “a” and “b” outputs: [“a”, “b”].
Node Inputs
- Type: The type of list you want to create
- Type:
Dropdown
- Type:
- Fields: The items in the list
- Type:
T
(based on the type of list you choose)
- Type:
Node Outputs
- Output: The list created from the input items
- Type:
List<T>
- Example usage:
{{create_list_0.output}}
- Type:
Considerations
- The order in which you input the fields is the same order in the output list.
Example
The below example is a pipeline for creating a list of 3 names.
If the inputs receive the following values:
name_0
: “John”name_1
: “Adam”name_2
: “Alan”
The output will be ["John", "Adam", "Alan"]