https://kotlinlang.org logo
#getting-started
Title
# getting-started
s

sitepodmatt

03/10/2019, 7:02 AM
Copy code
inline fun <T> Sequence<T>.filterUntil2(crossinline predicate: (T) -> Boolean): Sequence<T> {
    return takeWhile { !predicate(it)}
}