Enumerated

data class Enumerated(val values: List<Atom>) : FlagDomain

Constructors

Link copied to clipboard
constructor(values: List<Atom>)
constructor(vararg values: Atom)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun contains(value: Term): Boolean
Link copied to clipboard
inline fun <T> Iterable<T>.forEachWithLookahead(action: (T, Boolean) -> Unit)

Performs the given action on each element, giving a lookahead hint (i.e. if there's another element to process after).

Link copied to clipboard

Extracts every op/3 directive out of this collection of Clauses, converting each to an Operator.

Link copied to clipboard
open operator override fun iterator(): Iterator<Term>
Link copied to clipboard
fun <C : Clause> Iterable<C>.partition(unificator: Unificator = Unificator.default, staticByDefault: Boolean = true): ClausePartition

Partitions this collection of clauses into a ClausePartition, using unificator to match directive patterns.

Link copied to clipboard

Same as Sequence.toMapEnsuringNoDuplicates, for an Iterable.