All Downloads are FREE. Search and download functionalities are using the official Maven repository.

convex.core.lang.IFn Maven / Gradle / Ivy

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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy