IsFinite

com.phasmidsoftware.number.algebra.eager.IsFinite
object IsFinite

An object providing a custom extractor to check if a given Eager instance represents a finite value.

The IsFinite object can be used for pattern matching and extracting instances of Eager that are determined to be finite values, as determined by the absence of conditions that make it infinite.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
IsFinite.type

Members list

Value members

Concrete methods

def unapply(x: Eager): Option[Eager]

Returns Some(x) if this is finite.

Returns Some(x) if this is finite.

Value parameters

x

the Eager instance to be matched and extracted.

Attributes

Returns

an Option containing the extracted Number if the input matches the expected pattern, or None otherwise.