prepend-to-list

Adds a text value to the beginning of a list.

If a list is missing a single value, prepend-to-list can be used to add the new value at the beginning of the list.

Arguments

Inputs:

list: The list to which the value will be prepended.

value: The value to be prepended to the list.

Output:

list: A list with the value prepended.

Example

Prepend-to-list adds a new value to the beginning of an existing list. Example data-flo.

To add a value to the end of a list, use Append-to-list instead.

Possible use cases

  • Add a value to a list.

  • After using the Sort-list adaptor, add a missing element to the beginning of the list.

Last updated