trait
PartialApply[F, ParameterName <: String with Singleton] extends Serializable
Type Members
-
abstract
type
Parameter
-
abstract
type
Rest
Abstract Value Members
-
abstract
def
apply(f: F, parameter: Parameter): Rest
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (PartialApply[F, ParameterName], B)
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
ensuring(cond: (PartialApply[F, ParameterName]) ⇒ Boolean, msg: ⇒ Any): PartialApply[F, ParameterName]
-
def
ensuring(cond: (PartialApply[F, ParameterName]) ⇒ Boolean): PartialApply[F, ParameterName]
-
def
ensuring(cond: Boolean, msg: ⇒ Any): PartialApply[F, ParameterName]
-
def
ensuring(cond: Boolean): PartialApply[F, ParameterName]
-
-
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
→[B](y: B): (PartialApply[F, ParameterName], B)
Inherited by implicit conversion any2stringadd from
PartialApply[F, ParameterName] to any2stringadd[PartialApply[F, ParameterName]]
Inherited by implicit conversion StringFormat from
PartialApply[F, ParameterName] to StringFormat[PartialApply[F, ParameterName]]
Inherited by implicit conversion Ensuring from
PartialApply[F, ParameterName] to Ensuring[PartialApply[F, ParameterName]]
Inherited by implicit conversion ArrowAssoc from
PartialApply[F, ParameterName] to ArrowAssoc[PartialApply[F, ParameterName]]
A dependent type class that bind the specific parameter of
ParameterName
toF
Imports
import com.thoughtworks.feature.PartialApply.ops._
This will enable the partialApply method for any functions
Author:
杨博 (Yang Bo) <[email protected]>
The function type to be partially apply
Given a function with three parameters.
When partially applying the second parameter.
And applying the rest parameters.
Then the result should be the same as applying at once.
A function with refined parameters can partially apply.
Partial applying can be chained.
Function objects can partially apply.
Case class companion can partially apply.
Call-by-name functions can partially apply.