To reexpress this using two comprehensions with single generators, we can nest one comprehension within the other.
Let's start with the inner comprehension:
$[(x, y) \quad y<-[3,4]]$
This comprehension has a single generator: $y<-[3,4]$.
Now, let's use the
Show more…