toggle menu
lib
0.0.266
jvm
switch theme
search in API
lib
/
com.prettybyte.klerk.read
/
Reader
/
getFirstWhere
get
First
Where
abstract
fun
<
T
:
Any
>
getFirstWhere
(
collection
:
ModelCollection
<
T
,
C
>
,
filter
:
(
Model
<
T
>
)
->
Boolean
)
:
Model
<
T
>
Gets the first model from the Collection and passes the provided filter.
Throws
No
Such
Element
Exception
if no model was found