(digit)
| 57 | function emptyBuffer() { buf = ""; } |
| 58 | function pushInBuffer(str) { buf += str; }; |
| 59 | function pushCountDigit(digit) { return function(cm) {count += digit;} } |
| 60 | function popCount() { var i = parseInt(count); count = ""; return i || 1; } |
| 61 | function iterTimes(func) { |
| 62 | for (var i = 0, c = popCount(); i < c; ++i) func(i, i == c - 1); |