Standard Library List Functions
function
index
index
gets the entry from a list at the specified index.
Inputs
- Name
list
- Description
The list to retrieve an entry from.
- Name
index
- Description
The index of the entry to retrieve.
Output
- Name
value
- Description
The entry from list at the specified index
Example using index
output "entry" {
value = index(['a', 'b', 'c'], 1)
}
> entry: b