i'm writing a program in python with call a recursive function.
It is somewhat like:
def myfunction(list):
if (base-case):
# code to execute
else:
return [myfunction(list[0]), myfunction(list[1])]
Where the input list of myfunction is [[[element1, element2], [element1, element2]], [[element1, element2], [element1, element2]]]
with multiple-deep level of list/sublist.
Now, i like to make a multi-threading process of function "myfunction", so it can compute the sub-call of function at the same time.
I search a documentation on the net, but i found how to apply it on the classes, or with a specific example that i don't understand and i don't know to apply on my problem.
Have you any idea how to multithread this myfunction?
Thank you!