I wonder if there is a more functional way of implementing something like this:@months.zipWithIndex.foreach { case (month, index) =>    if (index%3 == 0) {        <tr>    }    <td>@month</td>    if (index%3 == 0) {        </tr>    }}Can these two if-statements be removed by using something other than foreach?
More functional approach
scala;functional programming