package aalg.algebra;

/**
 * Unary function is function that takes one argument and returns result.
 * After release of Java 8 this interface may be replaced by java.util.function.Function.

 * @author Ing. Petr Ležák
 *
 * @param <T>
 * @param <U>
 */
public interface UnaryFunction<T, U> {
	/**
	 * Applies function to argument.
	 * @param u argument
	 * @return result
	 */
	public T apply (final U u);
}
