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

# reinit(+LCOL, ++Index)

Creates a new list identified by Index

LCOL
  A list collection
Index
  A ground term or number

## 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) 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

terminate_all_lists / 2, terminate_and_get_list / 3