Joseph S
10/28/2022, 3:01 AMval 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?Jacob
10/28/2022, 3:03 AMmenu[Random.nextInt(until = 3)]
Joseph S
10/28/2022, 3:03 AMJacob
10/28/2022, 3:03 AMKlitos Kyriacou
10/28/2022, 8:14 AMJoseph S
10/28/2022, 3:31 PM