NamedFunction3

com.phasmidsoftware.lascala.fp.NamedFunction3
See theNamedFunction3 companion object
class NamedFunction3[-T1, -T2, -T3, +R](val name: String, val f: (T1, T2, T3) => R) extends (T1, T2, T3) => R, Named

NamedFunction3 class.

Type parameters

R

the result type

T1

the input type

T2

the input type

T3

the input type

Value parameters

f

the function itself

name

the name of this function

Attributes

Companion
object
Graph
Supertypes
trait Named
trait (T1, T2, T3) => R
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def apply(t1: T1, t2: T2, t3: T3): R

Applies the body of this function to the arguments.

Applies the body of this function to the arguments.

Value parameters

v1

the 1st argument

v2

the 2nd argument

v3

the 3rd argument

Attributes

Returns

the result of function application.

Definition Classes
Function3
override def curried: NamedFunction[T1, T2 => T3 => R]

Creates a curried version of this function.

Creates a curried version of this function.

Attributes

Returns

a function f such that f(x1)(x2)(x3) == apply(x1, x2, x3)

Definition Classes
Function3
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
Named -> Function3 -> Any
override def tupled: NamedFunction[(T1, T2, T3), R]

Creates a tupled version of this function: instead of 3 arguments, it accepts a single scala.Tuple3 argument.

Creates a tupled version of this function: instead of 3 arguments, it accepts a single scala.Tuple3 argument.

Attributes

Returns

a function f such that f((x1, x2, x3)) == f(Tuple3(x1, x2, x3)) == apply(x1, x2, x3)

Definition Classes
Function3

Concrete fields

val f: (T1, T2, T3) => R
val name: String

Provide the name of an object, primarily for rendering/debugging purposes.

Provide the name of an object, primarily for rendering/debugging purposes.

Attributes

Returns

the name

Inherited fields

val sCurried: String

Attributes

Inherited from:
Named
val sTupled: String

Attributes

Inherited from:
Named