I have a (large) list with male and female agentes.
I want to apply different functions to each.
How can I use Pool in such a case? Given that the agents are independent of each other.
An example would be:
males = ['a', 'b', 'c']
females = ['d', 'e', 'f']
for m in males:
func_m(m)
for f in females:
func_f(f)
I started like that:
from multiprocessing import Pool
p = Pool(processes=2)
p.map() # Here is the problem
I would like to have something like:
p.ZIP(func_f for f in females, func_m for m in males) # pseudocode