oday
11/01/2018, 7:56 PMfind to find the one and only item in a list where I know there is no repetition with, according to its ID?diesieben07
11/01/2018, 7:57 PMsingle?oday
11/01/2018, 7:57 PMdiesieben07
11/01/2018, 7:57 PModay
11/01/2018, 7:57 PMdiesieben07
11/01/2018, 7:57 PMsingleOrNull if you want null in case no item matchesoday
11/01/2018, 7:58 PMif (leaseCars.singleOrNull { it.id == listingId } != null)diesieben07
11/01/2018, 8:13 PMdiesieben07
11/01/2018, 8:14 PM