Open2021/12/07にコメント追加4Kotlin 文字列を組み立てる buildStringを使う。 https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/build-string.html ListをMapに変換する list..map { it.key to it.value }.toMap() https://www.baeldung.com/kotlin/list-to-map Flowを結合する https://betterprogramming.pub/learn-how-to-combine-kotlin-flows-317849a71d3e https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/combine.html https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/zip.html https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/flat-map-merge.html よく使う @Suppress @Suppress("UNCHECKED_CAST") @Suppress("unused") @Suppress("SpellCheckingInspection") ログインするとコメントできますLogin
Flowを結合する https://betterprogramming.pub/learn-how-to-combine-kotlin-flows-317849a71d3e https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/combine.html https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/zip.html https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/flat-map-merge.html