Skip to content

Instantly share code, notes, and snippets.

@adamrabung
Created November 6, 2015 11:57
Show Gist options
  • Save adamrabung/59029d9e634d9e2d02ee to your computer and use it in GitHub Desktop.
Save adamrabung/59029d9e634d9e2d02ee to your computer and use it in GitHub Desktop.
object QInterpolatorExample extends App {
implicit class QInterpolator(val sc: StringContext) extends AnyVal {
def q(args: Any*): Seq[String] = sc.raw().split("\n").map(_.trim).filter(_.nonEmpty)
}
val urls:Seq[String] = q""" http://angel.co/mile-high-organics
http://angel.co/kindara
http://angel.co/precog
http://angel.co/pivotdesk"""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment