Created
October 18, 2020 15:15
-
-
Save deanwampler/bf7bd15283c12a9e2bbb1db37920c0a0 to your computer and use it in GitHub Desktop.
Scala 2 ArrowAssoc definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implicit final class ArrowAssoc[A](private val self: A) extends AnyVal { | |
@inline def -> [B](y: B): (A, B) = (self, y) | |
@deprecated("Use `->` instead...", "2.13.0") | |
def →[B](y: B): (A, B) = ->(y) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment