I am taking a Kotlin class at Coursera and in the ...
# getting-started
o
I am taking a Kotlin class at Coursera and in the interactive code challenges I see eq in
list1.allNonZero() eq true
, but when I copy code into IntelliJ I get unresolved reference. Is eq part of Kotlinlang or hidden extension in the course code?
I should learn to scroll more
infix fun <T> T.eq(other: T) ...
k
That's really bad form... Hiding equals and comparing with boolean literals.
I hope it's just for demonstration purposes!
o
Yeah, its from the online code test. I copied it to IntelliJ without that key feature. But I must add I am impress over the EduTools integration with Coursera.