Previous: , Up: built-in lists   [Contents][Index]


6.16.3 Type of non–empty list objects

Core Type: <nelist>
Parent Type: <list>

Type of non–empty lists, whatever their structure. The fact that a list structure is non–circular, proper or improper must be checked at run–time.

Constructor on <nelist>: <nelist> type-constructor obj

Return a new non–empty list having the given obj arguments as items.

Type predicate on <nelist>: <nelist> type-predicate obj

The type predicate is nelist?. Return #t if obj is a proper non–empty list object; otherwise return #f.

Methods: accessors

Method on <nelist>: <top> car this

Apply car to the type instance.

Method on <nelist>: <top> cdr this

Apply cdr to the type instance.

Method on <nelist>: <pair> last-pair this

Apply last-pair to the arguments and return its return value.

Method on <list>: <list> list-tail this {idx <non-negative-exact-integer>}

Apply list-tail to the arguments and return its return value.

Method on <list>: <list> ref this {idx <non-negative-exact-integer>}

Apply list-ref to the arguments and return its return value.