public default List<E> next(final int amount) {
        final List<E> result = new ArrayList<>();
        int counter = 0;
        while (counter++ < amount && this.hasNext()) {
            result.add(this.next());
        }
        return result;
    }
Get the next n-number of results from the traversal.
If the traversal has less than n-results, then only that number of results are returned.

@param amount the number of results to get
@return the n-results in a {@link List}
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Traversal.java