LazyFunction

com.phasmidsoftware.number.core.misc.LazyFunction
See theLazyFunction companion object
abstract class LazyFunction[X] extends X => X

This abstract class is the base class for various functions used by LazyNumber algebra. It's not that the functions are lazy, it's that they are used by the LazyNumber module.

Attributes

Companion
object
Graph
Supertypes
trait X => X
class Object
trait Matchable
class Any
Known subtypes
class AndThen[X]
class Composed[X]
class Known[X]
class Exp[X]
class Identity[X]
class Product[X]
class Sum[X]
class Named[X]
Show all

Members list

Value members

Concrete methods

override def compose[A](g: A => X): A => X

Composes two instances of Function1 in a new Function1, with this function applied last.

Composes two instances of Function1 in a new Function1, with this function applied last.

Type parameters

A

the type to which function g can be applied

Value parameters

g

a function A => T1

Attributes

Returns

a new function f such that f(x) == apply(g(x))

Definition Classes
Function1
def composeX(f: X => X): X => X

Compose two functions, such that, when applied, parameter f is applied first

Compose two functions, such that, when applied, parameter f is applied first

Attributes

Inherited methods

def andThen[A](g: X => A): X => A

Composes two instances of Function1 in a new Function1, with this function applied first.

Composes two instances of Function1 in a new Function1, with this function applied first.

Type parameters

A

the result type of function g

Value parameters

g

a function R => A

Attributes

Returns

a new function f such that f(x) == g(apply(x))

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1

Inherited and Abstract methods

def apply(v1: X): X

Applies the body of this function to the argument.

Applies the body of this function to the argument.

Value parameters

v1

the function argument

Attributes

Returns

the result of function application.

Inherited from:
Function1