I want to create functions (def $name:) where name comes from array=['str1', 'str2', ...].
I tried the code above and already searched on stackoverflow and google but did not find any solution.
array = ['String1', 'String2', ...]
def array[0]:
code1
def array[1]:
code2
String1()
String2()