jfun.jaskell.function
Interface Function

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DelegatingFunction, Function1, Function2, Function3, Function4, Function5, FunctionN, StrictFunction1, StrictFunction2, StrictFunction3, StrictFunction4, StrictFunction5

public interface Function
extends java.io.Serializable

A Jaskell function object. All jaskell funcions evaluate to Function object. Implement this interface to import function into jaskell runtime.

Zephyr Business Solutions Corp.

Author:
Ben Yu

Method Summary
 java.lang.Object apply(java.lang.Object[] args)
          Call the function with an array of arguments.
 java.lang.Object apply(java.lang.Object[] args, int from, int len)
          Call the function with arguments stored in array args.
 java.lang.Object f(java.lang.Object arg)
          Call the function with one argument.
 

Method Detail

f

java.lang.Object f(java.lang.Object arg)
Call the function with one argument.

Parameters:
arg - the argument.
Returns:
the return value.

apply

java.lang.Object apply(java.lang.Object[] args)
Call the function with an array of arguments.

Parameters:
args - the arguments.
Returns:
the return value.

apply

java.lang.Object apply(java.lang.Object[] args,
                       int from,
                       int len)
Call the function with arguments stored in array args. Only objects in the range [from, from+len) are used.

Parameters:
args - the array.
from - the starting index of the range.
len - the length of the range.
Returns:
the return value.