Slightly more concise, do

    res.map { entry =>
      ..
    }