I need to do something that is functionally equivalent to this:
for foo in foos: bar = foo.get_bar() # Do something with bar
My first i
You can use lambda
for bar in map(lambda foo: foo.get_bar(), foos): # Do something with bar