Didn't you mean `humanNation.firstOrNull {...}`?
# announcements
s
Didn't you mean
humanNation.firstOrNull {...}
?
d
firstOrNull is more like the same as singleOrNull
s
more like the same as
im sorry, what
😆 1
s
No, with
firstOrNull
, you will get one element back even if several match the predicate. If several elements match the predicate with
singleOrNull
, you will get null
d
ah ok, didn't know thx