Final

trait Final[D]

Typeclass for domains that have (some) "final" elements, i.e. elements that cannot be refined further without reaching a contradiction. In other words, typeclass for domains that have elements covered by top.

Companion:
object
class Object
trait Matchable
class Any

Type members

Types

type Out

For many domains, final elements (i.e. elements covered by top) can be given a more precise type than D. For example, final elements of Promise[A] correspond to elements of A; final elements of integer interval sets correspond to integers; etc. This type member represents the type of final elements of D.

For many domains, final elements (i.e. elements covered by top) can be given a more precise type than D. For example, final elements of Promise[A] correspond to elements of A; final elements of integer interval sets correspond to integers; etc. This type member represents the type of final elements of D.

Value members

Abstract methods

def embed(a: Out): D

The reverse of extract.

The reverse of extract.

def extract(d: D): Option[Out]

Returns Some if d is final (i.e. covered by top), None otherwise.

Returns Some if d is final (i.e. covered by top), None otherwise.

Concrete methods

def isFinal(d: D): Boolean