Skip to content

Instantly share code, notes, and snippets.

@oker1
Created December 26, 2013 20:02
Show Gist options
  • Save oker1/8138025 to your computer and use it in GitHub Desktop.
Save oker1/8138025 to your computer and use it in GitHub Desktop.
Stream.continually(input.readLine())
.takeWhile(_ != null)
.map(_.split(",", 2))
.map { case Array(x, y) => (new java.util.Date(java.lang.Long.parseLong(x) * 1000), y) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment