5 ms·
Another one that I find useful -- using `map` instead of list comprehensions when you want to apply a function to every element. So instead of: [str(x) for
by gabipurcaru 13y ago
Another one that I find useful -- using `map` instead of list comprehensions when you want to apply a function to every element. So instead of:
[str(x) for x in array]
Do this:
map(str, array)