Skip to content

add any operator #2239

Closed
Closed
@helmbold

Description

@helmbold

To make Kotlin Flow more suitable for a wide range of tasks, I suggest to add an any function like in Reactor.

Description

Emit a single boolean true if any of the values of this Flux sequence match the predicate.

Signature

fun <T> Flow<T>.any(predicate: (T) -> Boolean)): Flow<Boolean>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions