[ library(list_collection) | Reference Manual | Alphabetic Index ]
append_element(+LCOL, ++Index, +Elem)
Append an Elem to the internal list identified by Index.
- LCOL
- A list collection
- Index
- A ground term or number
- Elem
- Term or variable
Description
Complexity O(1).
Modes and Determinism
- append_element(+, ++, +) is det
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.
- (1) general error
- List identified by Index is closed.
See Also
append_list / 3, prefix_element / 3, prefix_list / 3