Skip to content

Instantly share code, notes, and snippets.

@sifue
Created April 29, 2014 03:10
Show Gist options
  • Select an option

  • Save sifue/11389831 to your computer and use it in GitHub Desktop.

Select an option

Save sifue/11389831 to your computer and use it in GitHub Desktop.
Slickのコード例2
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