public default Traversal<S, E> discard() {
        this.asAdmin().getGremlinLang().addStep(Symbols.discard);
        return this.asAdmin().addStep(new DiscardStep<>(this.asAdmin()));
    }
Filter all traversers in the traversal. This step has narrow use cases and is primarily intended for use as a
signal to remote servers that {@link #iterate()} was called. While it may be directly used, it is often a sign
that a traversal should be re-written in another form.

@return the updated traversal with respective {@link DiscardStep}.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Traversal.java