Good, so there are a few transformations going on here.
@todoTasks.groupBy(_.project) says that todoTask has a field called project , and we need to convert this todoTasks list to Map, where the project is the key and the values ββare all todoTasks that match the key.
.map { case (project, tasks) => { says that now we have a map, where the key is project , and the value is a list of tasks . And if we have these two elements (project, tasks), then we must do something with each task, something for which it follows =>
you donβt need to have a deep knowledge of scala to be productive as a java play developer, just do your data transformations in your Java controller.
Alex source share