lltake: Extract the first 'k' elements from a linked list.

Description Usage Arguments Value

Description

Extract the first k elements from a linked list.

Usage

1
lltake(llist, k, acc = NIL)

Arguments

llist

A linked list

k

The number of elements to extract

Value

A new linked list containing the first k elements of llist.


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