All Bundles

Func2Holder<X,R>

Holds a function of in type X and out type R

Operations

New

Constructor

New(func:(X)~R)
Parameters
NameTypeDescription
func(X)~Rfunction

Apply

Apply function

function : public : Apply(arg:X) ~ R
Parameters
NameTypeDescription
argXargument

Return
TypeDescription
Rapplied result

Get

Gets function

method : public : Get() ~ (X)~R
Return
TypeDescription
(X)~Rfunction

Set

Sets function

method : public : Set(func:(X)~R) ~ Nil
Parameters
NameTypeDescription
func(X)~Rfunction