convex.core.lang.IFn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convex-core Show documentation
Show all versions of convex-core Show documentation
Convex core libraries and common utilities
The newest version!
package convex.core.lang;
import convex.core.data.ACell;
/**
* Interface for invokable objects with function interface.
*
* "Any sufficiently advanced technology is indistinguishable from magic." -
* Arthur C. Clarke
*
* @param Return type of function
*/
public interface IFn {
/**
* Invoke this function in the given context.
*
* @param context Context in which the function is to be executed
* @param args Arguments to the function
* @return Context containing result of function invocation, or an exceptional
* value
*/
public abstract Context invoke(Context context, ACell[] args);
}