Unique

class Unique(val value: () -> A_BasicObject) : TypeTag.Modifier

An indicator that the TypeTag has exactly one instance. A lambda to produce that instance is provided, and will be executed once, when first requested.

If the Unique value is provided, the Sup (supremum) is automatically set accordingly.

Constructors

Link copied to clipboard
fun Unique(value: () -> A_BasicObject)

Functions

Link copied to clipboard
open override fun applyTo(typeTag: TypeTag)

Adjust the TypeTag to accommodate this modifier.

Properties

Link copied to clipboard
val value: () -> A_BasicObject