Skip to content

Instantly share code, notes, and snippets.

@wallyqs
Created December 3, 2014 19:05
Show Gist options
  • Save wallyqs/1a8efc4bfc5f01fa68d4 to your computer and use it in GitHub Desktop.
Save wallyqs/1a8efc4bfc5f01fa68d4 to your computer and use it in GitHub Desktop.
Using -Xprint:parser !
val FromToPattern = """(\d+)\.\.\.(\d+)""".r

val FromToPattern(from, to) = "111...222"

println(s"From: $from, To: $to")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment