Skip to content

Instantly share code, notes, and snippets.

@deanwampler
Created October 18, 2020 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deanwampler/bf7bd15283c12a9e2bbb1db37920c0a0 to your computer and use it in GitHub Desktop.
Save deanwampler/bf7bd15283c12a9e2bbb1db37920c0a0 to your computer and use it in GitHub Desktop.
Scala 2 ArrowAssoc definition
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