Comma separated list with Enumerator
问题 I've just started working with Scala in my new project (Scala 2.10.3, Play2 2.2.1, Reactivemongo 0.10.0), and encountered a pretty standard use case, which is - stream all the users in MongoDB to the external client. After navigating Enumerator, Enumeratee API I have not found a solid solution for that, and so I solved this in following way: val users = collection.find(Json.obj()).cursor[User].enumerate(Integer.MAX_VALUE, false) var first:Boolean = true val indexedUsers = (users.map(u => { if