Check if a list of objects contains the object without the filter call to get true/false result
I got listOf and I have Pojo object.
I need to check if the list has objects with the same values and return true or false without filtering.
Trying val result = myPojo in pojoList
Got this error None of the following functions can be called with the arguments supplied. CharSequence.contains(Char, Boolean = ...) defined in kotlin.text CharSequence.contains(CharSequence, Boolean = ...) defined in kotlin.text CharSequence.contains(Regex) defined in kotlin.text