All Projects → ThoughtWorksInc → Q.scala

ThoughtWorksInc / Q.scala

Licence: apache-2.0
Convert any value to code

Programming Languages

scala
5932 projects

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")
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].