Returns the sublist following the first element in the input list. If list contains a single element, returns the empty list. If list is empty, NoValue is returned.
Syntax
Rest ( list As List ) As Any
Argument
Type
Description
list
List
The input list.
Example 1
Multi-item input list
Intent >rest({:a, :b, :c, :d}) --> {:b, :c, :d}
Here, additional items remain, and are returned.
Example 2
Single item input list
Intent >rest({:a}) --> {}
Here, the input list only has one item, so an empty list is returned.
Example 3
Empty input list
Intent >rest ({}) --> NoValue
Here, the input list is empty, so NoValue is returned.