3 ms·
Yes but then you can map things more easily without having to create partials, and it's consistent with how all other methods work in Python (e.g. format method
by aldanor 11y ago
Yes but then you can map things more easily without having to create partials, and it's consistent with how all other methods work in Python (e.g. format method)
>>> phrases = [['a', 'b', 'c'], ['d', 'e']]
>>> print(list(map('-'.join, phrases)))
['a-b-c', 'd-e']