p<R> method

R p<R>(
  1. R f(
    1. T value
    )
)

pipe the value into the given function.

123.p(print);
// is the same as
print(123);

Implementation

R p<R>(R Function(T value) f) => f(this);