Name

add — Create a new list with a new element

Synopsis

list add ( list LIST ,
  any VAR );
 

Parameters

list LIST

any VAR

Return

list

The new list

Description

Creates a new list that is identical to the list LIST but has the value VAR appended as additional element.

Usage

  add ([1, 4], 8) -> [1, 4, 8]