List Nodes

This sub-section provides helper functions related to lists.

List | First Item

This node returns the first element of the provided list [the first element is the element which is stored at 0 index in list].

For example – list = [1,2,3,4,5] then this node return result = 1.

List | Last Item

This node returns the last element of the provided list.

For example, list = [1,2,3,4,5] then this node return result = 5.

List | Reverse

This node reverses the provided list.

For example, list = [1,2,3,4,5] , node result = [5,4,3,2,1].

List | Remove At

This node removes the element at the provided index from the list.

The provided index should be between 0 <= index < list Length.

For example, list = [1,2,3,4,5], index = 1 result list = [1,3,4,5];

Note: Indexing in list starts from zero.

List | Remove Value

This node removes the first occurrence of the given value from the list.

For example, list = [1,2,3,4,5,1], and value = 1, so this node will return: [2,3,4,5,1].

List | Add Value

This node adds a value to the end of the list, extending the length by one.

For example, list = [1,2,3,4,5] and value = 6, so the node return = [1,2,3,4,5,6].

List | Add List

This node combines two lists into a single list. The length of the resultant list is the sum of the length of the first and second lists.

For example, Input list1 = [1,2,3] and Input list2 = [4,5,6] and the Output list: [1,2,3,4,5,6].

List | Insert At

This node helps you to insert at a particular position or index in the list, inserting an item into the list can cause the increase in the length of the list by one and shifts all objects at or after the index towards the end of the list.

For example, Input list: [1, 2, 3, 4], index: 2, element: 10 Output list: [1, 2, 10, 3, 4].

List | Remove Range

This node helps you to remove multiple sets of consecutive elements from the list at once.

Removes the elements with positions greater than or equal to start and less than the end, from the list. This reduces the list's length by the end - start.

For example, Input list = [1,2,3,4,5,6] , start index: 0, end index: 2 and the Output list: [3,4,5,6] because end is not included.

List | Clear

This node helps you to Removes all objects from this list; the length of the list becomes zero.

This node returns the empty list which can be used again for adding items or elements.

For example Input list: [1,2,3,4,5], Output list: [].

List | Length

This node calculates the length of the list, indicating how many elements are present.

For example, Input list: [1,2,3,4,5], Output length: 5 total 5 elements are present.

List | Is Empty

This node helps you to check whether the provided list is empty or not, if the provided list is empty then the node returns True else it returns false.

For example, Input list: [1,2,3,4], Output: false, if Input list: [], Output: true.

List | Index Of

This node finds the index of a particular element in the list. It returns the index of the first occurrence of the element.

For example, Input list: [1,2,3,4], element: 3, then node Output index: 2.

Note: The index in the list starts from zero.

List | Element At

This node helps you to get the element at a particular index. This node returns the value of the item or element present at the given index.

For example, list = [1,2,3,4,5,6] , index =2, then the node return 3, as indexing in list starts from zero.

If you have any ideas to make Blup better you can share them through our Discord community channel

Music to go with.

Last updated