3public class TailCallClosure extends Closure {
4 private final Closure function;
6 public TailCallClosure(Closure function) {
8 this.function = function;
11 public final Object call() {
12 Closure function = this.function;
14 while (function != null) {
15 result = function.call();
17 if (result instanceof TailCallClosure) {
18 function = ((TailCallClosure)result).function;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list