Creating sublists in a for comprehension

The a <- list part of for is called a generator if one wants to be correct. Doesn’t matter if there’s a reduce or not.