Companion

object Companion

Properties

Link copied to clipboard

The conventional name ("_") used by the anonymous variable.

Link copied to clipboard

The pattern a name must match to be considered isNameWellFormed.

Functions

Link copied to clipboard

Creates a new anonymous variable (conventionally represented as _). Every invocation returns a distinct instance: anonymous variables are never meant to be shared.

Link copied to clipboard

Wraps string between backticks, unconditionally.

Link copied to clipboard

Wraps string between backticks, but only if it does not already match NAME_PATTERN.

Link copied to clipboard
fun of(name: String): Var

Creates a new, distinct Var named name. Calling this twice with the same name yields two different variables (see the class documentation); use a Scope instead when the same variable must occur more than once in the term(s) being built.