I have a list of custom objects and I want to apply a method on each object which alters the internal memory of the objects. I want to be able to do this in parallel without having to return the objects afterwards.
Essentially I would like to have the equivalent of the for(/each) statement below but in parallel.
for env, p, v in zip(envs, policy, value):
env.step(p, v)