Explorations
private struct Explorations<T> where T : DisjunctiveConstraintProtocol
A set of constraint system solutions resulting from the explorations of the different choices of a disjunctive constraint.
-
The solution of an exploration for a particular choice.
Declaration
Swift
typealias Element = (choice: T.Predicate, solution: Solution) -
The results of the exploration.
Declaration
Swift
private(set) var elements: [Element] { get } -
The score of the solutions in this set.
Declaration
Swift
private(set) var score: Solution.Score { get } -
Creates an empty set.
Declaration
Swift
init() -
Inserts
newResultinto this set if its solution is better than or incomparable to any of the solutions currently in the set, ranking solutions withrank.Declaration
View on GitHub