Q.scala

Build Status Latest version Scaladoc

Q.scala is a library to convert any value to parsable code.

Usage

libraryDependencies += "com.thoughtworks.q" %% "q" % "latest.release"
import com.thoughtworks.Q._
import scala.reflect.runtime.universe._

val data: Seq[Either[Double, String]] = Seq(Left(math.random), Right("string data")) 

// Output: _root_.scala.Seq(_root_.scala.util.Left(0.6437966035784641), _root_.scala.util.Right("string data"))
println(q"$data")