Does Scala have a function application operator?
There is not. You can easily define your own, however.
implicit class PipeEverything[A](val underlying: A) extends AnyVal {
def |>[B](f: A => B) = f(underlying)
}
There is not. You can easily define your own, however.
implicit class PipeEverything[A](val underlying: A) extends AnyVal {
def |>[B](f: A => B) = f(underlying)
}