• Given a stream aStream, return its tail, i.e the stream deprived of its first element.

    Raises an error in case of an empty list. Evaluates the tail if not already done. tail is mostly an alias for cdr with error handling.

    Parameters

    • aStream: Stream<any>

      the list considered

    Returns any

    • the tail of aStream if any