you could do `fun <T> Sequence<T>.take...
# announcements
k
you could do
fun <T> Sequence<T>.takeWhileInclusive(pred: (T) -> Boolean): Sequence<T> = take(count(pred) + 1)
i
This requires iterating the sequence twice, which is often undesirable.
c
right, that defeats the purpose of a sequence
also it does not work in my case where i use a sequence of lines from a file. which is a great feature btw