
append_element(+LCOL, ++Index, +Elem)

   Append an Elem to the internal list identified by Index.

Arguments
   LCOL                A list collection
   Index               A ground term or number
   Elem                Term or variable

Type
   library(list_collection)

Description
Complexity O(1).

Modes and Determinism
   append_element(+, ++, +) is det

Exceptions
     5 --- LCOL is not a list collection.
     5 --- Index is not a number or is out of range.
     5 --- Index is not ground.
     1 --- List identified by Index is closed.

See Also
   append_list / 3, prefix_element / 3, prefix_list / 3
