Add all items of list to list
Function: Add all items of list to list
This function allows you to combine the contents of two separate lists into a single list. It takes all the items from one list and appends them to the end of another existing list. This is useful when you have multiple collections of data and want to merge them into one comprehensive list.
Input
- List: This is the main list where you want to add items. All items from the 'Adding list' will be appended to this list.
- Type: List of Variables
- Adding list: This is the list whose items you want to add to the 'List'. This input is required.
- Type: List of Variables
Output
The 'List' input parameter will be updated to include all items from the 'Adding list'. There is no separate output variable; the original 'List' is modified directly to contain the combined items.
Execution Flow
Real-Life Examples
Here are some practical examples of how you can use the "Add all items of list to list" function:
Example 1: Combining Shopping Lists
Imagine you have a main shopping list and a separate list for items you need from the pharmacy. You want to combine them into one complete list.
- Inputs:
- List:
["Milk", "Bread", "Eggs"](Your main grocery list) - Adding list:
["Painkillers", "Band-aids"](Your pharmacy list)
- List:
- Result: The
Listwill now contain["Milk", "Bread", "Eggs", "Painkillers", "Band-aids"].
Example 2: Merging Customer Segments
You have a list of "Premium Customers" and a new list of "Loyal Customers" from a recent promotion. You want to combine these into a single list for a special marketing campaign.
- Inputs:
- List:
["Alice", "Bob", "Charlie"](Premium Customers) - Adding list:
["David", "Eve"](Loyal Customers)
- List:
- Result: The
Listwill now contain["Alice", "Bob", "Charlie", "David", "Eve"].
Example 3: Consolidating Task Lists
You manage projects and have a general "To-Do" list for the week, but a colleague just sent you a separate list of urgent tasks. You want to add these urgent tasks to your main list.
- Inputs:
- List:
["Review Report", "Send Team Email", "Update Project Status"](Weekly To-Do) - Adding list:
["Fix Bug X", "Call Client Y"](Urgent Tasks)
- List:
- Result: The
Listwill now contain["Review Report", "Send Team Email", "Update Project Status", "Fix Bug X", "Call Client Y"].