commonMain.it.unibo.tuprolog.dsl.solve.PrologExtensions.kt Maven / Gradle / Ivy
@file:JvmName("PrologExtensions")
package it.unibo.tuprolog.dsl.solve
import it.unibo.tuprolog.solve.SolverFactory
import kotlin.js.JsName
import kotlin.jvm.JvmName
@JsName("prologFromSolverFactory")
fun prolog(solverFactory: SolverFactory, function: PrologScopeWithResolution.() -> R): R {
return PrologScopeWithResolution.of(solverFactory).function()
}
@JsName("prolog")
fun prolog(function: PrologScopeWithResolution.() -> R): R {
return PrologScopeWithResolution.empty().function()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy