Companion

object Companion

Functions

Link copied to clipboard

Creates an empty Theory, using the default unificator

fun empty(unificator: Unificator): Theory

Creates an empty Theory

Link copied to clipboard

Creates an empty Theory backed by an indexed data structure

Link copied to clipboard

Creates an empty Theory backed by a list

Link copied to clipboard
fun indexedOf(unificator: Unificator, clauses: Iterable<Clause>): Theory
fun indexedOf(unificator: Unificator, clauses: Sequence<Clause>): Theory
fun indexedOf(unificator: Unificator, vararg clause: Clause): Theory

Creates a Theory backed by an indexed data structure, containing the given clauses

fun indexedOf(unificator: Unificator, vararg clauses: Scope.() -> Clause): Theory

Let developers easily create a Theory backed by an indexed data structure, while avoiding variables names clashing by using a different Scope for each Clause

Link copied to clipboard
fun listedOf(unificator: Unificator, clauses: Iterable<Clause>): Theory
fun listedOf(unificator: Unificator, clauses: Sequence<Clause>): Theory
fun listedOf(unificator: Unificator, vararg clause: Clause): Theory

Creates a Theory backed by a list, containing the given clauses

fun listedOf(unificator: Unificator, vararg clause: Scope.() -> Clause): Theory

Let developers easily create a Theory backed by a list, while avoiding variables names clashing by using a different Scope for each Clause

Link copied to clipboard
fun of(vararg clause: Clause): Theory

Creates a Theory, containing the given clauses, using the default unificator

fun of(vararg clauses: Scope.() -> Clause): Theory

Let developers easily create a Theory using the default unificator, while avoiding variables names clashing by using a different Scope for each Clause

fun of(unificator: Unificator, clauses: Iterable<Clause>): Theory
fun of(unificator: Unificator, clauses: Sequence<Clause>): Theory
fun of(unificator: Unificator, vararg clause: Clause): Theory

Creates a Theory, containing the given clauses

fun of(unificator: Unificator, vararg clauses: Scope.() -> Clause): Theory

Let developers easily create a Theory, while avoiding variables names clashing by using a different Scope for each Clause