Return two values from for loop in Kotlin
I am trying to return two values from the array with the for loop, but am only getting the first value instead.
data class Batches(
var qty: Int?,
var entries: List?,
var entryIds: ArrayList?,
var priceconfig: PriceConfig?
) {
constructor() : this(0, null, null, null)
}
data class TruckEntry(var name: String?, var id: String?, var qty: Int?, var observed: Int?) {
constructor() : this(null, null, null, null)
}
My function:
private fun getBatchName(batches: Batches):...