mapWith<R> method

List<R> mapWith<R>(
  1. JMapper<T, R> mapper
)

Maps the list elements using the provided mapper.

Returns a new list with the mapped elements of type R.

Implementation

List<R> mapWith<R>(JMapper<T, R> mapper) => mapper.transformList(this);