The combine lists node allows you to combine multiple lists into a single list. For example, [a, b, c] combining with [d, e, f] becomes [a, b, c, d, e, f].

Node Inputs

  1. Type: The type of list you want to create
    • Type: Dropdown
  2. Lists: The lists you want to combine
    • Type: List<List<T>> (based on the type of list you choose)

Node Outputs

  1. Output: The combined list
    • Type: List<T>
    • Example usage: {{combine_list_0.output}}

Example

The below example shows a pipeline that takes two lists of fruits ([“apples”, “oranges”, “peaches”] and [“grapes”, “kiwi”, “mango”]) and combines them into a single list ([“apples”, “oranges”, “peaches”, “grapes”, “kiwi”, “mango”].

  1. Text Node: Contains the following text: apples,oranges,peaches
  2. Split Text Node: Splits the text on the comma delimiter into a list
    • Text for splitting: {{text_0.text}}
    • Delimiter: Character(s)
    • Character: ,
  3. Text Node: Contains the following text: grapes,kiwi,mango
  4. Split Text Node: Splits the text on the comma delimiter into a list
    • Text for splitting: {{text_1.text}}
    • Delimiter: Character(s)
    • Character: ,
  5. Combine Lists Node: Combines the two lists into a single list
    • List 1: {{split_text_0.processed_text}}
    • List 2: {{split_text_1.processed_text}}
  6. Output: The combined list
    • Output: {{combine_list_0.output}}