sbt/util/collection/Show.scala

9 lines
159 B
Scala
Raw Normal View History

package sbt
trait Show[T] {
def apply(t: T): String
2012-01-09 14:00:29 +01:00
}
object Show
{
def apply[T](f: T => String): Show[T] = new Show[T] { def apply(t: T): String = f(t) }
}