Skip to content

ThoughtWorksInc/Q.scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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