Jan
04/29/2022, 2:09 PMdata class AttachmentItem(val imageId: String, val extension: String)
now I have two lists of these attachments:
val list1 = listOf<AttachmentItem>()
val list2 = listOf<AttachmentItem>()
//now I want to know which AttachmentItems are missing in list1 but are there in list 2 and vice versa. So:
val diff1 = //attachments available in list1 but not in list2
val diff2 = //attachments available in list2 but not in list1
How would I do that in kotlin?Jacob
04/29/2022, 2:11 PMMichael de Kaste
04/29/2022, 2:14 PMset1 - set2
and set2 - set1
as fast as possibleJan
04/29/2022, 2:54 PM