【发布时间】:2014-01-25 06:47:54
【问题描述】:
有人可以向我解释一下隐式关键字在以下播放动作中的用途:
def index = Action { implicit request =>
Async {
val cursor = collection.find(
BSONDocument(), BSONDocument()).cursor[Patient]
val futureList = cursor.toList
futureList.map { patients => Ok(Json.toJson(patients)) }
}
}
提前致谢。
【问题讨论】:
标签: scala playframework