package solver.library;

import alice.tuprolog.Term;
import solver.VisMap;

import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.BiConsumer;

/**
 * Represents a {@link BiConsumer} that receives a {@link VisMap} and the {@link prolog.TuProlog} result (see
 * {@link prolog.TuProlog#solve(Term)}.
 */
@FunctionalInterface
public interface QueryConsumer extends BiConsumer<VisMap, List<Map<String, Term>>> {
    default QueryConsumer andThen(QueryConsumer after) {
        Objects.requireNonNull(after);

        return (l, r) -> {
            accept(l, r);
            after.accept(l, r);
        };
    }
}

@@ -296,18 +296,18 @@
 (see
-%0A *
  %7B@link
+%0A *
  pro
@@ -332,16 +332,128 @@
 (Term)%7D.
+ This consumer is ussually used to modify the visualization elements in the %7B@link%0A * VisMap%7D based the results.
 %0A */%0A@Fu

Update doc