KMongo DSL
Toggle table of contents
5.14.1-SNAPSHOT
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
KMongo DSL
kmongo-dsl-sync
/
org.litote.kmongo
/
takeWhile
take
While
inline
fun
<
T
>
MongoIterable
<
T
>
.
takeWhile
(
crossinline
predicate
:
(
T
)
->
Boolean
)
:
List
<
T
>
Returns a list containing first elements satisfying the given
predicate
.
Samples
samples.collections.Collections.Transformations.take