Created
September 22, 2014 10:11
-
-
Save tommorris/7a6c5df522eca2e78001 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
val src = Source.fromFile("/Users/tom/google_export.txt") | |
val data = src.getLines().map(_.split("\t")).toList | |
val ie_pre_9 = data.filter(_(0).toFloat < 9) | |
val ie_pre_9_shit_screens = ie_pre_9.filter(_(1).split("x")(0).toInt < 1024) | |
ie_pre_9_shit_screens.foldLeft(0)((x: Int, y: Array[String]) => x + y(2).toInt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment