commonMain.it.unibo.tuprolog.solve.directives.ClauseExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of solve-jvm Show documentation
Show all versions of solve-jvm Show documentation
Resolution-agnostic API for logic solvers
@file:JvmName("ClauseExtensions")
package it.unibo.tuprolog.solve.directives
import it.unibo.tuprolog.core.Clause
import it.unibo.tuprolog.theory.Theory
import it.unibo.tuprolog.unify.Unificator
import kotlin.js.JsName
import kotlin.jvm.JvmName
import kotlin.jvm.JvmOverloads
@JvmOverloads
@JsName("partitionClauses")
fun Iterable.partition(
unificator: Unificator = Unificator.default,
staticByDefault: Boolean = true,
): ClausePartition = ClausePartitioner(unificator, this, staticByDefault)
@JvmOverloads
@JsName("partitionTheory")
fun Theory.partition(
unificator: Unificator = this.unificator,
staticByDefault: Boolean = true,
): ClausePartition = ClausePartitioner(unificator, this, staticByDefault)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy