kactoos-jvm / nnl.rocks.kactoos.func / FuncOf
class FuncOf<in X :
Any
, out Y :
Any
> :
Func
<
X
,
Y
>
Represents many possible inputs as Func.
There is no thread-safety guarantee.
X
- Type of input.
Y
- Type of output.
func
- Func.
Since 0.4
Name | Summary |
---|---|
<init> | FuncOf(proc: Proc < X >, result: Y ) FuncOf(func: KFunc < X , Y >) Represents many possible inputs as Func. |
Name | Summary |
---|---|
apply | fun apply(input: X ): Y Apply it. |
Name | Summary |
---|---|
invoke | operator fun <Y : Any > invoke(result: Y ): FuncOf < Any , Y > |