News for hackers. Stuff that matters.
Re:An app can be a home-cooked meal by Cyphase on Friday January 05, 2024 @11:27PM (#38888421)
Side note, you don't need `if bar_vec != []`. Trying to loop over an empty iterable (e.g. a list) just doesn't loop, since there's nothing there.

Also, another way to write this (which results in a flattened list) is:

  [foo(x) for bar_vec in bar_mat for y in bar_vec if baz(y) for x in y]

There are no comments on this comment yet.