package com.jfixby.red.desktop.test;

import com.jfixby.cmns.api.log.L;

public class ExampleLambda {

	// Calculating factorial using Java Lambda Expression

	public interface FunctionalInterface<Input, Output> {
		Output apply(Input input);
	}

	static FunctionalInterface<Long, Long> factorial = null;

	public static void main(String[] args) {
		Setup.setup();

		factorial = n -> {
			
			
			if (n == 0) {
				return 1L;
			}
			return n * factorial.apply(n - 1);
		};

		L.d(factorial.apply(5L));

	}
}

@@ -384,16 +384,8 @@
 %3E %7B%0A
-%09%09%09%0A%09%09%09%0A
 %09%09%09i

Update ExampleLambda.java