I want to rename a list of files without using a for
loop.
It is possible by using the map
function like this:
import os
list( map( (lambda x: os.rename(x, x + "foo")), filelist ) )
...but it's not convenient: the returned map
object needs to be "activated" by the list
function.
So I'm looking for a kind of map
procedure that would do the same, without shenanigans.