Junior — Senior
Function that transforms list elements
livecode
Task condition
The task is to write a function that takes two arguments: a list and a transformer function. The function should apply the given transformer function to each element of the original list sequentially and return a new list containing the results.
def transform_list(data, mapper):
# implementation
pass