MCPcopy Index your code
hub / github.com/microsoft/SandDance / generate

Function generate

docs/app/js/sanddance-app.js:116180–116188  ·  view source on GitHub ↗
(base, tuple, index)

Source from the content-addressed store, hash-verified

116178 collect(aggr._prev);
116179 collect(curr); // iterate over key cross-product, create cells as needed
116180 function generate(base, tuple, index) {
116181 const name = dims[index], v = vals[index++];
116182 for(const k in v){
116183 const key = base ? base + "|" + k : k;
116184 tuple[name] = v[k];
116185 if (index < n) generate(key, tuple, index);
116186 else if (!curr[key]) aggr.cell(key, tuple);
116187 }
116188 }
116189 generate("", {}, 0);
116190 },
116191 init (_) {

Callers 1

crossFunction · 0.70

Calls 2

elementFunction · 0.70
signalMethod · 0.45

Tested by

no test coverage detected