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
/
first
first
inline
fun
<
T
>
MongoIterable
<
T
>
.
first
(
crossinline
predicate
:
(
T
)
->
Boolean
)
:
T
Returns the first element matching the given
predicate
.
Throws
No
Such
Element
Exception
if no such element is found.