Re:SQL databases come up with algorithms you’d never have dr...
by dragonwriter on Saturday April 06, 2019 @10:40AM
(#19590957)
> I wouldn't compare a comprehension to a loop because a loop doesn't typically have an output.
Loops in lots of languages have outputs. It's kind of necessary in expression-oriented languages.
But it's true that comprehensions are different than Python loops in that way (and are, in fact, equivalent to maps with joins and filters, like an SQL SELECT statement.)
Loops in lots of languages have outputs. It's kind of necessary in expression-oriented languages.
But it's true that comprehensions are different than Python loops in that way (and are, in fact, equivalent to maps with joins and filters, like an SQL SELECT statement.)