Antoine Gagnon
06/04/2020, 4:10 PMval originalNumbers = listOf(1,3,5,6,8,235,764)
val newNumbers = listOf(1,4,6,235,764,23)
val toRemove = originalNumbers.filter { it !in newNumbers } // [3, 5, 8]
This work perfectly fine, but just for my own peace of mind I feel like there’s a collections functions that would do exactly that?Sam Garfinkel
06/04/2020, 4:12 PMSam Garfinkel
06/04/2020, 4:12 PMequals
implementation, you can subtract two iterables.Antoine Gagnon
06/04/2020, 4:13 PM