Skip to content

Instantly share code, notes, and snippets.

@geeksville
Created November 18, 2011 04:35
Show Gist options
  • Save geeksville/1375618 to your computer and use it in GitHub Desktop.
Save geeksville/1375618 to your computer and use it in GitHub Desktop.
codeval bug report...
Fails
http://codeeval.com/open_challenge_scores/submissions/?tid=30435
import scala.io._
val fname = args(0)
Source.fromFile(fname).foreach { c => print(c.toLower) }
System.exit(0)
Passes:
http://codeeval.com/open_challenge_scores/submissions/?tid=30436
import scala.io._
object lowercase {
def main(args: Array[String]) {
val fname = args(0)
Source.fromFile(fname).foreach { c => print(c.toLower) }
System.exit(0)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment