mapTo<T, R> method

R mapTo<T, R>(
  1. R apply(
    1. T it
    )
)

apply mapping with T as parameter and R as return value

Implementation

R mapTo<T, R>(R Function(T it) apply) => apply(this as T);