TinyMUX

Rest()

Rest()

FUNCTION: rest(<string>[, <delimeter>])

Description

Rest() takes a string and returns the contents of the string, removing the first element.

Examples

think rest(1 2 3 4 5)

2 3 4 5

-or-

think rest(1!2!3!4!5,!)

2!3!4!5

-or-

think rest(Testing the Rest() function!)

the Rest() function!

Using commas (,) as separators is tricky – any instance of the comma must be escaped with a backslash (\, such as:

think rest(1\,2\,3\,4\,5, \,)

2,3,4,5