We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d299034 commit 55d5602Copy full SHA for 55d5602
src/main/scala/io/github/kelvindev15/prolog/solver/Solver.scala
@@ -83,6 +83,8 @@ object Solver:
83
case Halt(exception: Exception)
84
85
extension (solution: Solution)
86
+ /** Retrieve the substitution term for the provided variable.
87
+ */
88
def apply(variable: Variable): Option[Term] = solution match
89
case y: Solution.Yes => Some(y.substitution(variable))
90
case _ => None
0 commit comments