https://kotlinlang.org logo
k

kevinmost

08/01/2017, 8:32 PM
Copy code
val DEFAULT: (String) -> Boolean = { true }
class Hi(val filter: (String) -> Boolean = DEFAULT) {
  fun foo() {
    val isDefaultFilter = filter === DEFAULT
  }
}