gist:51b8f593180078e76970

u.go
2015-10-01T15:04:42Z

gistfile1.scala

| package operator
|
| object Functional {
| class PipedObject[T] private[Functional] (value: T)
| {
| def |>[R] (f : T => R) = f(this.value)
| }
| implicit def toPiped[T] (value: T) = new PipedObject[T](value)
| }