Hi all, I’m trying to create a random generator to generate an element of an Array/List. Found this in the docs:
val forBreakfast = Random.nextInt(until = 3).let { menu[it] }
I get most parts of this code except for what does ‘it’ mean in the square brackets? Is it some placeholder variable to represent the generated number or something?