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/matchbox documentation built on Feb. 3, 2020, 10:17 p.m.