Is there a difference between classes Tuple2
and Pair
in scala?
It seems to me they do the exact same thing.
Yes. both are same
type Pair[+A, +B] = Tuple2[A, B]
https://github.com/scala/scala/blob/v2.9.2/src/library/scala/Predef.scala#L1 line 227
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With