let<R> method

R let<R>(
  1. R fn(
    1. T
    )
)

Calls the provided function with the value of this as its argument and returns the result.

Implementation

R let<R>(R Function(T) fn) {
  return fn(this);
}