Created
April 29, 2014 03:10
-
-
Save sifue/11389831 to your computer and use it in GitHub Desktop.
Slickのコード例2
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 q = (for {r .where(_.channel is target.getName) | |
.where(_.updateAt >= countedDate) | |
.groupBy(_.nickname) | |
val qGroup = q.map { | |
case (nickname, grouped) => (nickname, grouped.length) | |
} | |
val qSort = qGroup.sortBy(_._2.desc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment