How to add your knowledge

rest()

    Table of contents
    1. 1. Synopsis
    2. 2. Syntax
    3. 3. Example 1
    4. 4. Example 2
    5. 5. Example 3

    Synopsis

    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.