Skip to content

Instantly share code, notes, and snippets.

@notyy
Created May 4, 2012 08:06
Show Gist options
  • Save notyy/2593183 to your computer and use it in GitHub Desktop.
Save notyy/2593183 to your computer and use it in GitHub Desktop.
universe
import scala.io._
object Main {
def main(args: Array[String]) {
echo(Console.readLine)
}
def echo(line: => String): Unit = line match{
case "42" => ()
case (x:String) => println(x);echo(Console.readLine);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment