@ Nullable public < R > R custom ( @ NotNull final Function < IntStream , R > function ) { Objects . requireNonNull ( function ) ; return function . apply ( this ) ; }
Applies custom operator on stream .