listRest

Gets a list, without its first element.

listRest(list [, delimiters]) → returns string

Argument Reference

list string
Required

delimiters string
Default: ,

Examples
Sample code invoking the listRest function

A very basic listRest example

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

Expected Result: two,three,four

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

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

Expected Result: three,four

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

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

Expected Result: three

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub