Last active
July 24, 2016 23:00
-
-
Save Krasnyanskiy/52522cf020fe5b169c1bd9c84a4faeb1 to your computer and use it in GitHub Desktop.
-scala: sorting via reduce
This file contains hidden or 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 res = text.map(_.split(" ").size).sortBy(identity).collect.toList |
Author
Krasnyanskiy
commented
Jul 24, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment