What is equivalent of Java `"X-Secret"::equalsIgno...
# announcements
r
What is equivalent of Java
"X-Secret"::equalsIgnoreCase
?
l
The
equals
method has an
ignoreCase
parameter
r
I mean alternative to that syntax, in Java it return
BinaryOperator
s
@rrader are you asking how to get an instance method reference? the syntax is the same in Kotlin as it is in Java, and it looks like you got it already
the function type might technically be a bit odd though, maybe like
KFunction1<String, Boolean>
?
r
@Shawn thank you, in Kotlin there is no
equalsIgnoreCase
method
👍 1