mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-06-03 00:15:15 +00:00
7 lines
173 B
Kotlin
7 lines
173 B
Kotlin
|
package dev.inmo.micro_utils.coroutines
|
||
|
|
||
|
import kotlinx.coroutines.flow.*
|
||
|
|
||
|
fun <T> Flow<T>.takeNotNull() = mapNotNull { it }
|
||
|
fun <T> Flow<T>.filterNotNull() = takeNotNull()
|