stephan_marshay
03/16/2018, 5:36 PMhumanNation.firstOrNull {...}
?dasz
03/16/2018, 6:05 PMShawn
03/16/2018, 6:12 PMmore like the same asim sorry, what
stephan_marshay
03/16/2018, 6:12 PMfirstOrNull
, you will get one element back even if several match the predicate. If several elements match the predicate with singleOrNull
, you will get nullstephan_marshay
03/16/2018, 6:12 PMdasz
03/16/2018, 6:24 PM