https://kotlinlang.org logo
#effective-kotlin
Title
# effective-kotlin
a

alostpacket

02/24/2019, 3:34 AM
Copy code
operator fun Regex.contains(text: CharSequence): Boolean = this.containsMatchIn(text)

class Substring(private val str: String) {
  operator fun contains(text: CharSequence): Boolean = text.contains(str)
}
5 Views