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.
Rest ( list As List ) As Any
Argument | Type | Description |
---|---|---|
list | List | The input list . |
Intent >rest({:a, :b, :c, :d}) --> {:b, :c, :d}Here, additional items remain, and are returned.
Intent >rest({:a}) --> {}Here, the input list only has one item, so an empty list is returned.
Intent >rest ({}) --> NoValueHere, the input list is empty, so NoValue is returned.