sbt/util/collection/Show.scala

9 lines
159 B
Scala

package sbt
trait Show[T] {
def apply(t: T): String
}
object Show
{
def apply[T](f: T => String): Show[T] = new Show[T] { def apply(t: T): String = f(t) }
}