Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Focusing

Michał Krzywański mkrzywanski

:octocat:
Focusing
View GitHub Profile
View Java-tailcall-trampoline
@FunctionalInterface
public interface TailCall<T> {
static <S> TailCall<S> done(S result) {
return new TailCall<S>() {
@Override
public TailCall<S> apply() {
throw new IllegalStateException("Last tailCall does not support apply method");
}
@Override