Search code examples
scalaequalsscalazscala-catstriple-equals

Are there any triple equals === methods outside of Cats in Scala?


I have spent a while searching on Google for a non-Cats triple equals method, but can't find anything apart from Scalaz. Unfortunately, I have been unable to work out the import for === in this library.

Can someone help, many thanks.


Solution

  • Regarding scalaz try

    import scalaz._
    import Scalaz._
    
    42 === "hello" // error: type mismatch; found: String("hello") required: Int
    
    

    where

    libraryDependencies += "org.scalaz" %% "scalaz-core" % "7.2.28"