let<ReturnType> method

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

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

Implementation

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