run<R> method

R run<R>(
  1. R block(
    1. T obj
    )
)

Calls the specified function block with this value as its argument and returns this value.

Implementation

R run<R>(R Function(T obj) block) {
  return block(this);
}