
reinit(+LCOL, ++Index)

   Creates a new list identified by Index

Arguments
   LCOL                A list collection
   Index               A ground term or number

Type
   library(list_collection)

Description
Discards the internal list of elements identified by Index, and replaces with a new list. Complexity O(1).

Modes and Determinism
   reinit(+, ++) 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.

See Also
   terminate_all_lists / 2, terminate_and_get_list / 3
