Created
November 6, 2015 11:57
-
-
Save adamrabung/59029d9e634d9e2d02ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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