|
package swensen.functional;
/**
* A generic functor for non-void functions with one parameter.
* @author Stephen Swensen
* @param <T1> the type of the sole parameter for call
* @param <R> the return type of call
*/
public interface Func1 <T1,R> {
/**
* Invoke this functor synchronously.
* @param t1 the sole parameter
* @return the return value
*/
public R call(T1 t1);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm developing Unquote, a library for writing unit test assertions as F# quoted expressions: http://code.google.com/p/unquote/
I am working through Project Euler with F#: http://projecteulerfun.blogspot.com/
I participate in Stack Overflow: http://stackoverflow.com/users/236255/stephen-swensen