Return a List containing the results of applying the given transform function to each element in the original sequence.
The operation is terminal.