p<R> method
R
p<R>(
- R f(
- 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);
pipe the value into the given function.
123.p(print);
// is the same as
print(123);
R p<R>(R Function(T value) f) => f(this);