7 ms·
list(map(f, iterable)) versus [f(x) for x in iterable] also comes to mind!
by EForEndeavour 7y ago
list(map(f, iterable)) versus [f(x) for x in iterable] also comes to mind!
- makapuf 7y agoIf I remember correctly, it is recommended to use list comprehension (see stackoverflow)