feat: add lab7

This commit is contained in:
Yadunand Prem
2022-10-20 13:51:59 +08:00
parent 4ee04937da
commit 86e5d543b2
29 changed files with 1223 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package cs2030s.fp;
/**
* Represent a function to initialise a constant value.
* CS2030S Lab 5
* AY22/23 Semester 1
*
* @param <T> The type of the constant value.
*/
@FunctionalInterface
public interface Constant<T> {
/**
* The functional method to initialise the constant.
*
* @return The constant value.
*/
T init();
}