We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 187f0aa commit 25a33d4Copy full SHA for 25a33d4
kotlinx-coroutines-core/common/src/flow/operators/Transform.kt
@@ -15,7 +15,7 @@ import kotlinx.coroutines.flow.internal.unsafeFlow as flow
15
import kotlinx.coroutines.flow.unsafeTransform as transform
16
17
/**
18
- * Returns a flow containing only values of the original flow that matches the given [predicate].
+ * Returns a flow containing only values of the original flow that match the given [predicate].
19
*/
20
public inline fun <T> Flow<T>.filter(crossinline predicate: suspend (T) -> Boolean): Flow<T> = transform { value ->
21
if (predicate(value)) return@transform emit(value)
0 commit comments