Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. val t2:Future[Tuple2[List[PlayerCol],List[CreatureCol]]] = for {
  2. p <- PlayerDAO.findAll()
  3. c <- CreatureDAO.findAlive()
  4. }yield(p,c)
  5.  
  6. t2.map(t => Ok(views.html.index(t._1, t._2)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement