by icebraining · 11y ago · 0 comments
lmap = lambda f, l: list(map(f, l))
somewhere in your project, then use new = lmap(func, lst)Then again, map() and friends are not exactly the recommended way, list comprehensions and generator expressions are usually preferred by the BDFL.