@Override default Tree<T> peek(Consumer<? super T> action) { Objects.requireNonNull(action, "action is null"); if (!isEmpty()) { action.accept(head()); } return this; }
public void consumePosRange(int iposStart, int iposEnd, Consumer out) { if (out.ignoring()) return; int i = nextIndex(iposStart); int end = nextIndex(iposEnd); for (; i < end; i++) out.writeFloat(floatAt(i)); }