I actually wrote nearly identical code to this at one point but had to abandon it because I couldn't figure out how to unconditionally yield cc-> subParsesByCountry.getOrElse(cc, Nil). [re: the previous comment, ironically, this is the very line I accidentally deleted when I rewrote it]

Let me know if there is still a way to use a for comprehension.