llrev: Reverse a linked list.

Description Usage Arguments Value

Description

This function scans through llist, building the reverse list in acc.

Usage

1
llrev(llist, acc = NIL)

Arguments

llist

A linked list

acc

An accumulator (for making the function tail-recursive)

Value

A list containing the elements in llist in reverse order.


mailund/pmtypes documentation built on Jan. 31, 2020, 1:09 p.m.