spmallette commented on code in PR #1929:
URL: https://github.com/apache/tinkerpop/pull/1929#discussion_r1063387414
##########
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/iterator/IteratorUtils.java:
##########
@@ -260,10 +301,40 @@ public static <S, E> Iterator<E> cast(final Iterator<S>
iterator) {
///////////////
- public static final <S> Iterator<S> filter(final Iterator<S> iterator,
final Predicate<S> predicate) {
+ public static <S> Iterator<S> peek(final Iterator<S> iterator, final
Consumer<S> function) {
Review Comment:
it's a simple function but would you mind adding tests in
`IteratorUtilsTest` for `peek()` since it's a utility. been trying to maintain
the coverage levels on this class.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]