An implicit equality typeclass instance, 2015: implicit val intEqual: Eq[Int] = new Eq[Int] { def equal(x: Int, y: Int): Boolean = x == y } (1/8)
-
Show this thread
-
Replying to @propensive
Nice software archaeology! Where does this particular Eq type class come from?
1 reply 0 retweets 2 likes
Replying to @a4dev
I just made it up for the tweet, but essentially it's: trait Eq[T]: def equal(x: T, y: T): Boolean
4:49 AM - 8 Apr 2021
0 replies
0 retweets
4 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.