bindWorkspace method
Computes all possible bindings within a list of active concepts
(e.g. the current workspace) and returns the results.
Implementation
List<BindingResult> bindWorkspace(
List<Concept> active,
List<ConceptNode> allNodes,
) {
final results = <BindingResult>[];
for (var i = 0; i < active.length; i++) {
for (var j = i + 1; j < active.length; j++) {
final r = _computeBinding(active[i], active[j], allNodes);
if (r != null) results.add(r);
}
}
return results;
}