N Times Assignment
Revision as of 07:00, 14 February 2020 by Dennis.cosgrove (talk | contribs) (Created page with "=Code To Implement= ==NTimesHof== {{JavaToImplement|NTimesHof|nTimes|hof.ntimes.assignment}} <nowiki>public static <T> T nTimes(Function<T, T> f, int n, T x)</nowiki> ==NTi...")
Code To Implement
NTimesHof
class: | NTimesHof.java | ![]() |
methods: | nTimes | |
package: | hof.ntimes.assignment | |
source folder: | src/main/java |
public static <T> T nTimes(Function<T, T> f, int n, T x)
NTimesHofApps
class: | NTimesHofApps.java | ![]() |
methods: | incrementNTimes doubleNTimes nthTail |
|
package: | hof.ntimes.assignment | |
source folder: | src/main/java |
public static int incrementNTimes(int n, int x)
public static int doubleNTimes(int n, int x)
public static <E> ImmutableList<E> nthTail(int n, ImmutableList<E> x)
Test
class: | NTimesTestSuite.java | ![]() |
package: | hof.ntimes.assignment | |
source folder: | src/test/java |