vavr icon indicating copy to clipboard operation
vavr copied to clipboard

Add variadic <T1, T2, ...TN> peek()/tap() to FunctionN

Open btoo opened this issue 2 years ago • 0 comments

Similar to https://github.com/vavr-io/vavr/issues/2723, it would be quite useful to be able to non-disruptively access the values of variadic types (which I'll admit would probably be a larger effort than adding the current peek/tap implementations, all monadic, was)

Function3.of(functionWith3Args)
  .peek(debug3Values)
  .andThen(...)

btoo avatar Dec 08 '23 17:12 btoo