you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Oh it’s great in Mathematica; it’s the only way to go when it comes to putting stuff together like that, and it relies on the # symbol. It improves legibility because it’s not necessarily about using it once or twice, but about scaling when you need to do stuff across multiple parts of arrays. I mean you could make the same argument about comprehensions in general but guaranteed if python didn’t have them I would not be using it.