IsInteger

com.phasmidsoftware.number.algebra.eager.IsInteger
object IsInteger

Object containing utility methods for working with integers in the context of the Eager type, including a pattern matcher to extract integer values.

Attributes

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

Members list

Value members

Concrete methods

def unapply(eager: Eager): Option[Int]

Extracts an integer value from the given Eager instance if possible.

Extracts an integer value from the given Eager instance if possible.

Value parameters

eager

The Eager instance to be tested and potentially decomposed.

Attributes

Returns

An Option containing the integer value if the input can be converted to an integer, or None otherwise.