Home

Awesome

Q.scala <a href="http://thoughtworks.com/"><img align="right" src="https://www.thoughtworks.com/imgs/tw-logo.png" title="ThoughtWorks" height="15"/></a>

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")