New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vect/column-zipper

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vect/column-zipper - npm Package Compare versions

Comparing version 0.3.10 to 0.4.0

90

dist/index.cjs.js

@@ -12,8 +12,8 @@ 'use strict';

mx,
t,
b
lo,
hi
} = this;
t = t || 0, b = b || (ma === null || ma === void 0 ? void 0 : ma.length), mx = mx || matrixInit.draft(b, y);
hi = hi ?? (ma == null ? void 0 : ma.length), mx = mx ?? matrixInit.draft(hi, y);
for (let i = t; i < b; i++) mx[i][y] = fn(ma[i][y], mb[i][y], i);
for (let i = lo ?? 0; i < hi; i++) mx[i][y] = fn(ma[i][y], mb[i][y], i);

@@ -27,8 +27,8 @@ return mx;

mx,
t,
b
lo,
hi
} = this;
t = t || 0, b = b || (ma === null || ma === void 0 ? void 0 : ma.length), mx = mx || matrixInit.draft(b, y);
hi = hi ?? (ma == null ? void 0 : ma.length), mx = mx ?? matrixInit.draft(hi, y);
for (let i = t; i < b; i++) mx[i][y] = fn(ma[i][y], mb[i][y], mc[i][y], i);
for (let i = lo ?? 0; i < hi; i++) mx[i][y] = fn(ma[i][y], mb[i][y], mc[i][y], i);

@@ -42,8 +42,8 @@ return mx;

mx,
t,
b
lo,
hi
} = this;
t = t || 0, b = b || (ma === null || ma === void 0 ? void 0 : ma.length), mx = mx || matrixInit.draft(b, y);
hi = hi ?? (ma == null ? void 0 : ma.length), mx = mx ?? matrixInit.draft(hi, y);
for (let i = t; i < b; i++) mx[i][y] = fn(ma[i][y], mb[i][y], mc[i][y], md[i][y], i);
for (let i = lo ?? 0; i < hi; i++) mx[i][y] = fn(ma[i][y], mb[i][y], mc[i][y], md[i][y], i);

@@ -54,4 +54,4 @@ return mx;

mx,
t,
b
lo,
hi
} = {}) => duozipper.bind({

@@ -61,9 +61,9 @@ y,

mx,
t,
b
lo,
hi
});
const Trizipper = (y, fn, {
mx,
t,
b
lo,
hi
} = {}) => trizipper.bind({

@@ -73,9 +73,9 @@ y,

mx,
t,
b
lo,
hi
});
const Quazipper = (y, fn, {
mx,
t,
b
lo,
hi
} = {}) => quazipper.bind({

@@ -85,32 +85,42 @@ y,

mx,
t,
b
lo,
hi
});
const zipper = (ma, mb, y, fn, l) => duozipper.call({
const zipper = (ma, mb, y, fn, hi) => duozipper.call({
y,
fn,
b: l
hi
}, ma, mb);
const mutazip = (ma, mb, y, fn, l) => duozipper.call({
y,
fn,
mx: ma,
b: l
}, ma, mb);
const mutazip = (mx, mb, y, fn, hi) => {
return duozipper.call({
y,
fn,
mx,
hi
}, mx, mb);
};
const ColumnZipper = y => (ma, mb, fn, l) => duozipper.call({
const ColumnZipper = y => (ma, mb, fn, hi) => duozipper.call({
y,
fn,
b: l
hi
}, ma, mb);
const ColumnMutazip = y => (ma, mb, fn, l) => duozipper.call({
const ColumnMutazip = y => (mx, mb, fn, hi) => duozipper.call({
y,
fn,
mx: ma,
b: l
}, ma, mb);
mx,
hi
}, mx, mb);
function iterzip(ma, mb, y, action, hi) {
hi = hi ?? (ma == null ? void 0 : ma.length);
for (let i = 0; i < hi; i++) action(ma[i][y], mb[i][y], i);
return void 0;
}
exports.ColumnMutazip = ColumnMutazip;

@@ -121,3 +131,7 @@ exports.ColumnZipper = ColumnZipper;

exports.Trizipper = Trizipper;
exports.duozipper = duozipper;
exports.iterzip = iterzip;
exports.mutazip = mutazip;
exports.quazipper = quazipper;
exports.trizipper = trizipper;
exports.zipper = zipper;

@@ -8,8 +8,8 @@ import { draft } from '@vect/matrix-init';

mx,
t,
b
lo,
hi
} = this;
t = t || 0, b = b || (ma === null || ma === void 0 ? void 0 : ma.length), mx = mx || draft(b, y);
hi = hi ?? (ma == null ? void 0 : ma.length), mx = mx ?? draft(hi, y);
for (let i = t; i < b; i++) mx[i][y] = fn(ma[i][y], mb[i][y], i);
for (let i = lo ?? 0; i < hi; i++) mx[i][y] = fn(ma[i][y], mb[i][y], i);

@@ -23,8 +23,8 @@ return mx;

mx,
t,
b
lo,
hi
} = this;
t = t || 0, b = b || (ma === null || ma === void 0 ? void 0 : ma.length), mx = mx || draft(b, y);
hi = hi ?? (ma == null ? void 0 : ma.length), mx = mx ?? draft(hi, y);
for (let i = t; i < b; i++) mx[i][y] = fn(ma[i][y], mb[i][y], mc[i][y], i);
for (let i = lo ?? 0; i < hi; i++) mx[i][y] = fn(ma[i][y], mb[i][y], mc[i][y], i);

@@ -38,8 +38,8 @@ return mx;

mx,
t,
b
lo,
hi
} = this;
t = t || 0, b = b || (ma === null || ma === void 0 ? void 0 : ma.length), mx = mx || draft(b, y);
hi = hi ?? (ma == null ? void 0 : ma.length), mx = mx ?? draft(hi, y);
for (let i = t; i < b; i++) mx[i][y] = fn(ma[i][y], mb[i][y], mc[i][y], md[i][y], i);
for (let i = lo ?? 0; i < hi; i++) mx[i][y] = fn(ma[i][y], mb[i][y], mc[i][y], md[i][y], i);

@@ -50,4 +50,4 @@ return mx;

mx,
t,
b
lo,
hi
} = {}) => duozipper.bind({

@@ -57,9 +57,9 @@ y,

mx,
t,
b
lo,
hi
});
const Trizipper = (y, fn, {
mx,
t,
b
lo,
hi
} = {}) => trizipper.bind({

@@ -69,9 +69,9 @@ y,

mx,
t,
b
lo,
hi
});
const Quazipper = (y, fn, {
mx,
t,
b
lo,
hi
} = {}) => quazipper.bind({

@@ -81,32 +81,42 @@ y,

mx,
t,
b
lo,
hi
});
const zipper = (ma, mb, y, fn, l) => duozipper.call({
const zipper = (ma, mb, y, fn, hi) => duozipper.call({
y,
fn,
b: l
hi
}, ma, mb);
const mutazip = (ma, mb, y, fn, l) => duozipper.call({
y,
fn,
mx: ma,
b: l
}, ma, mb);
const mutazip = (mx, mb, y, fn, hi) => {
return duozipper.call({
y,
fn,
mx,
hi
}, mx, mb);
};
const ColumnZipper = y => (ma, mb, fn, l) => duozipper.call({
const ColumnZipper = y => (ma, mb, fn, hi) => duozipper.call({
y,
fn,
b: l
hi
}, ma, mb);
const ColumnMutazip = y => (ma, mb, fn, l) => duozipper.call({
const ColumnMutazip = y => (mx, mb, fn, hi) => duozipper.call({
y,
fn,
mx: ma,
b: l
}, ma, mb);
mx,
hi
}, mx, mb);
export { ColumnMutazip, ColumnZipper, Duozipper, Quazipper, Trizipper, mutazip, zipper };
function iterzip(ma, mb, y, action, hi) {
hi = hi ?? (ma == null ? void 0 : ma.length);
for (let i = 0; i < hi; i++) action(ma[i][y], mb[i][y], i);
return void 0;
}
export { ColumnMutazip, ColumnZipper, Duozipper, Quazipper, Trizipper, duozipper, iterzip, mutazip, quazipper, trizipper, zipper };
{
"name": "@vect/column-zipper",
"version": "0.3.10",
"version": "0.4.0",
"description": "Zip function",

@@ -18,3 +18,3 @@ "main": "dist/index.cjs.js",

"dependencies": {
"@vect/matrix-init": "^0.3.10"
"@vect/matrix-init": "^0.4.0"
},

@@ -37,3 +37,3 @@ "repository": {

"homepage": "https://github.com/hoyeungw/vect#readme",
"gitHead": "cf716b1eeb2ed3e653a75f1924c318c5f80bd23a"
"gitHead": "0df009c248625ffea1915bdf71435257046927a5"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc