Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This solution was definitely easier to understand. Smart to put the rows variable inside the loop so it resets every time to add it to the columns variable. Saves lots of space and makes it a lot more clean and concise.
I agree the only positive side to list comprehension is just how consise it is and the speed of execution (it runs faster than traditional nested loops).
You can read more here: https://www.postgresql.org/docs/current/functions-srf.html
compr may be faster but loops are easier to understand
Where did you get the "generate_series"?
No: https://stackoverflow.com/questions/30245397/why-is-a-list-comprehension-so-much-faster-than-appending-to-a-list
This should be the best answer. It's more clear then list comprehensions.
how is this beautiful except all the character are on one line?
Is it?