Nov-09-2020, 09:16 PM
(Nov-09-2020, 05:27 AM)buran Wrote: You can iterate over items in a list and apply a fucntion on each item, no need to have the function in a/the list
e.g.
for item in some_list: some_function(item)or using list comprehension (e.g. if you have a list and want to create new list with elements being the result, i.e. value returned by some function)
This sounds to be what could work. I just do not understand how to implement it. If i am understanding right are you saying i can assign a element name to the function that can be used in the list so that when i call on the list element that corresponds with that function it will in turn call that function?