All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.it.unibo.tuprolog.solve.directives.ClauseExtensions.kt Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
@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