let<ReturnType> method

ReturnType let<ReturnType>(
  1. ReturnType operationFor(
    1. T self
    )
)

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

Implementation

ReturnType let<ReturnType>(ReturnType Function(T self) operationFor) {
  return operationFor(this);
}