listRest

Gets a list, without its first element.

listRest(list [, delimiters]) → returns String

Argument Reference for the listRest function

list

Required: Yes

delimiters

Required: No
Default: ,
Values:
  • ,
  • |
  • ;
  • chr(9)
  • chr(10)
  • chr(13)

Examples sample code invoking the listRest function


Simple listRest Example

A very basic listRest example

listRest("one,two,three,four");

Expected Result: two,three,four


Combining listRest to Shorten the List

Nesting listRest shortens the list by one each time with the first element removed.

listRest(listRest("one,two,three,four"));

Expected Result: three,four


Traversing a List with listRest and listFirst

Nesting list functions lets you move through the list in pieces.

listFirst(listRest(listRest("one,two,three,four")));

Expected Result: three


Fork me on GitHub