Created
May 7, 2015 00:48
-
-
Save andrewconner/1f9d5d1bdcae758f9a1c to your computer and use it in GitHub Desktop.
ForwardPipe
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 class AnyExtensionOps[A](val x: A) extends AnyVal { | |
def |>[B](f: A => B): B = f(x) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment