Trim a list to a specified size
This node trims a list to just contain sections you want. You can enter the number of items to keep or specify the section of the list you want to keep.
For example, for the list [a, b, c], if we were to keep 2 items, the output would be [a, b].
Dropdown
List<T>
(based on the type of list you choose)List<T>
{{list_trimmer_0.output}}
The below example shows a pipeline that demonstrates the capabilities of the list trimmer node. The node will take in a list of 3 items, and trim it down to 2 items.
apples,oranges,peaches
{{text_0.text}}
Character(s)
,
{{split_text_0.processed_text}}
2
{{list_trimmer_0.output}}
Trim a list to a specified size
This node trims a list to just contain sections you want. You can enter the number of items to keep or specify the section of the list you want to keep.
For example, for the list [a, b, c], if we were to keep 2 items, the output would be [a, b].
Dropdown
List<T>
(based on the type of list you choose)List<T>
{{list_trimmer_0.output}}
The below example shows a pipeline that demonstrates the capabilities of the list trimmer node. The node will take in a list of 3 items, and trim it down to 2 items.
apples,oranges,peaches
{{text_0.text}}
Character(s)
,
{{split_text_0.processed_text}}
2
{{list_trimmer_0.output}}