com.apamax.functional
Event Partial


A partially evaluated function which can be passed to functional operators or later executed with the remaining arguments.

eg: Partial p := Fn.partial(concatFn, "Hello"); <string>p.exec(" world");
Action summary
 anyexec(any args)

Execute the underlying function, passing in the remaining arguments.
 com.apamax.functional.Partialpartial(any arguments)

Add more partial arguments and return a new Partial which wraps this one.
 action<sequence<any>> returns anystatic resolve(any actionOrPartial)

Take either an action, or a Partial and return a generic action version of either.
 
Action detail

exec

            any exec(any args)
        
Execute the underlying function, passing in the remaining arguments.
Parameters:
args - The remaining single argument, or sequence of all remaining arguments.
Returns:
The result of executing the underlying function with the original and remaining arguments.

partial

            com.apamax.functional.Partial partial(any arguments)
        
Add more partial arguments and return a new Partial which wraps this one.
Parameters:
arguments

resolve

            action<sequence<any>> returns any static resolve(any actionOrPartial)
        
Take either an action, or a Partial and return a generic action version of either.
Parameters:
actionOrPartial - Either an action or a Partial instance.
Returns:
A generic action of a uniform type which either executes the action, or the curried Partial function.