[ library(list_collection) | Reference Manual | Alphabetic Index ]

prefix_element(+LCOL, ++Index, +Elem)

Prefixes the internal list identified by Index with an Elem.
LCOL
A list collection
Index
A ground term or number
Elem
Term or variable

Description

Complexity O(1)

Modes and Determinism

Exceptions

(5) type error
LCOL is not a list collection.
(5) type error
Index is not a number or is out of range.
(5) type error
Index is not ground.

See Also

append_element / 3, append_list / 3, prefix_list / 3