MCPcopy
hub / github.com/aosabook/500lines / repeat

Function repeat

blockcode/code/menu.js:41–47  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

39 }
40
41 function repeat(block){
42 var count = Block.value(block);
43 var children = Block.contents(block);
44 for (var i = 0; i < count; i++){
45 Block.run(children);
46 }
47 }
48 menuItem('Repeat', repeat, 10, []);
49
50

Callers

nothing calls this directly

Calls 2

valueMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected