mapToList<T> method

List<T> mapToList<T>(
  1. T f(
    1. int n
    )
)

Maps this numeric collection to a List<T> using f to map each element.

Implementation

List<T> mapToList<T>(T Function(int n) f) => map(f).toList();