Name

prepend — Prepend a list with a new element

Synopsis

list prepend ( any  ELEMENT ,
  list  LIST );

Parameters

any ELEMENT

Element to prepend

list LIST

List

Return

list

Description

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

Usage

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