Maps this numeric collection to a List<T> using f to map each element.
List<T>
f
List<T> mapToList<T>(T Function(int n) f) => map(f).toList();