list_cons: Add a head item to a linked list.

Description Usage Arguments Value

Description

Add a head item to a linked list.

Usage

1
list_cons(elem, lst)

Arguments

elem

The item to put at the head of the list.

lst

The list – it will become the tail of the new list.

Value

a new linked list.


mailund/ralgo documentation built on May 21, 2019, 11:07 a.m.