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 (e.g. 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 - e.g. if the input list is a list of numbers, then item should also be set to be a number.)

See Also

About lists

Functions

About the elements of Okta Workflows