This is doing my head in & I’m sure i’m missing something glaring obvious -
Is there anyway in kotlin to make the below code into a single line functional statement(i.e. returning a townLocalitiesQuery with all the values added)?
val townLocalitiesQuery = disMaxQuery()
townNameQuery
.forEach { it -> townLocalitiesQuery.add(it) }