Skip to content

Instantly share code, notes, and snippets.

View mkrzywanski's full-sized avatar
:octocat:
Focusing

Michał Krzywański mkrzywanski

:octocat:
Focusing
View GitHub Profile
@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