Hello,
what does the comment mean here? you want a persistent map instead of allocating one each time?
// Not a built-in predicate. Call lookupFn.lookupFn(p, func(fact ast.Atom) error {
// TODO: This could be made a lot more efficient by using a persistent// data structure for composing the unionfind substitutions.ifnewSubst, err:=unionfind.UnifyTermsExtend(p.Args, fact.Args, subst); err==nil {
solutions=append(solutions, newSubst)
}
returnnil
})
returnsolutions, nil
Hello,
what does the comment mean here? you want a persistent map instead of allocating one each time?