Signature

data class Signature(val name: String, val arity: Int, val vararg: Boolean = false) : TermConvertible

The signature of a query Struct or a Primitive

Constructors

Link copied to clipboard
constructor(name: String, arity: Int, vararg: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val arity: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Converts this Signature to Indicator, if possible without loosing information, otherwise throws an exception

Link copied to clipboard
open override fun toTerm(): Struct

Converts this signature to a Struct '/'([name], [arity]) or '/'([name],'+'([arity], vararg))

Link copied to clipboard
infix fun withArgs(arguments: Iterable<Term>): Struct

Creates corresponding Struct of this Signature with provided arguments