MCPcopy Create free account
hub / github.com/alignoth/alignoth / xu

Function xu

resources/vega.min.js:5922–5935  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

5920 return t ? t.map((t, r) => e[r] || n(t)) : null;
5921 }
5922 function xu(t, e, n) {
5923 const r = [],
5924 i = (t) => t(u);
5925 let o, a, s, u, l, c;
5926 if (null == e) r.push(t.map(n));
5927 else
5928 for (o = {}, a = 0, s = t.length; a < s; ++a)
5929 ((u = t[a]),
5930 (l = e.map(i)),
5931 (c = o[l]),
5932 c || ((o[l] = c = []), (c.dims = l), r.push(c)),
5933 c.push(n(u)));
5934 return r;
5935 }
5936 ((mu.Definition = {
5937 type: "Density",
5938 metadata: { generates: !0 },

Callers 1

transformFunction · 0.85

Calls 2

nFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected