element function in terraform

C++
#Element retrieves single element from the list
element(list, index)

#Example to Understand
element(["a", "b", "c"], 1)
b

element(["a", "b" , "c"], 0)
a
Source

Also in C++: