4 ms·
> isn't it more readable concise and beautiful than python version? No.
by cwyers 10y ago
> isn't it more readable concise and beautiful than python version?
No.
- minimaxir 10y agoTo add to this, the which-loop-in-one-line-of-code is not self-documenting, which is important for data/ML in particular when others need to verify your code.
- cwyers 10y agoAnd it's not any shorter in terms of statements, they're just using the diamond operator to put all the statements in the loop on one line.