Sudhir Singh Khanger
11/03/2017, 3:41 PMprintln("item at $index is ${items[index]}")
What is the role of curly and square brackets in the above example?diesieben07
11/03/2017, 3:43 PMitems[index]
injected and not items
with the string "[index]"
after it.
Square: Array indexing operator.Sudhir Singh Khanger
11/03/2017, 4:04 PM