MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / popCount

Function popCount

mini-code-edit/cm/keymap/vim.js:60–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);
63 }

Callers 3

iterTimesFunction · 0.85
enterInsertModeFunction · 0.85
vim.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected