Ok, scala. Creating a frequency histogram of a list of Ints by doing “list.groupBy(identity).mapValues(_.size)” is pretty fucking cool.
@slyphon @ryanlecompte Cool. Quick warning: mapValues recompues the value (ie. calls _.size) on every access :(
-
-
@tixxit@slyphon Yes! I usually stay away from mapValues and filterKeys because of this. This gist demonstrates it: https://gist.github.com/davidandrzej/5006950 …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.