run<R> function

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

and returns this value.

Implementation

R run<R>(R Function() block) {
  return block.call();
}