O'Reilly logo
  • saeed Abooleet thinks this is interesting:

scala> val a = "Marisa" a: String = Marisa scala> val b = "marisa" b: String = marisa scala> a.equalsIgnoreCase(b) res0: Boolean = true

From

Cover of Scala Cookbook

Note

compairing two strings without looking to their letters' cases