Nat Strangerweather
@Composable fun ShowDropDown( openDropDown: MutableState<Boolean>, text: List<String>, destination: List<DirectionDestination>, navigator: DestinationsNavigator, ) { DropdownMenu( expanded = openDropDown.value, onDismissRequest = { openDropDown.value = false }, ) { text.zip(destination) .forEach { DropdownMenuItem(onClick = { navigator.navigate(it.second) }, text = { Text(it.first) }) } } }
Landry Norris
list1.zip(list2.zip(list3))
.map { abc -> Triple(abc.first, abc.second.first, abc.second.second) }
Michael de Kaste
list1.zip(list2).zip(list3) { (a, b), c -> Triple(a, b, c) }
A modern programming language that makes developers happier.