What is the difference between == and .equals() in Scala, and when to use which?
==
.equals()
Is the implementation same as in Java?
EDIT: The r
You normally use ==, it routes to equals, except that it treats nulls properly. Reference equality (rarely used) is eq.
equals
null
eq