https://kotlinlang.org logo
#announcements
Title
# announcements
n

nickk

06/12/2018, 2:53 PM
Is there a way to make this work? I get a message that it is currently unsupported
Copy code
fun defaultFilterPredicate(searchTerm: String) : Boolean = searchTerm.contains(searchTerm, true)


        fun filterItems(searchTerm: String) : List<DataProvider> {
            return items.filter {
                (::filterPredicate ?: ::defaultFilterPredicate)(searchTerm)
            }
        }