QueryFunctions

com.phasmidsoftware.number.core.inner.QueryFunctions
trait QueryFunctions[T]

Trait for the query functions: three functions, corresponding to the functions for Int, Rational and Double representations.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract fields

val fDouble: Double => Try[T]

Function to process a Double input and return a Try of type T. Part of the query functions that operate on different numeric types.

Function to process a Double input and return a Try of type T. Part of the query functions that operate on different numeric types.

Attributes

val fInt: Int => Try[T]

Function that processes an integer input and returns a result of type T encapsulated in a Try. This function is used for querying data by taking an integer representation.

Function that processes an integer input and returns a result of type T encapsulated in a Try. This function is used for querying data by taking an integer representation.

Attributes

val fRat: Rational => Try[T]

Function to handle a query that takes a Rational input and returns a Try[T] as a result.

Function to handle a query that takes a Rational input and returns a Try[T] as a result.

Attributes