Get First Item

Given a list, return two outputs: the first item and the list with that item removed (aka Shift).

Input Fields

  • list: The starting list. Be sure to set the type of the list (for example, list of objects or list of numbers)

Output Fields

  • list: Returns the list without the first item. (Be sure to set the type of the output list to match that of the input list.)

  • item: Returns the first item. (Be sure to set the type - for example, if the input list is a list of numbers, then item should also be set to be a number.)

Related topics

Lists

Functions

Workflow elements