12 lines
276 B
Plaintext
Vendored
12 lines
276 B
Plaintext
Vendored
fun f(s: String?) {
|
|
if (s != null) {
|
|
s.hashCode() * 1
|
|
}
|
|
val substring = s?.substring(1)
|
|
if (substring != null) {
|
|
substring.hashCode() * 2
|
|
}
|
|
val s1 = s?.let { it.hashCode() * 3 }
|
|
val s2 = s?.substring(1)?.let { it.hashCode() * 4 }
|
|
}
|