big-cartesian:大量输入的笛卡尔积

时间:2021-05-02 04:59:57
【文件属性】:
文件名称:big-cartesian:大量输入的笛卡尔积
文件大小:274KB
文件格式:ZIP
更新时间:2021-05-02 04:59:57
nodejs javascript library performance algorithm 大量输入的笛卡尔积。 检索几个数组之间的所有可能组合(): 可以处理无限数量的组合 几乎不需要内存 当您组合数百个阵列或这些阵列产生数百万个组合时,此模块是完美的。 否则,您应该使用代替,因为它快得多。 例子 const bigCartesian = require ( 'big-cartesian' ) for ( const values of bigCartesian ( [ [ 'red' , 'blue' ] , [ 'circle' , 'square' ] , ] ) ) { console . log ( values ) } // [ 'red', 'circle' ] // [ 'red', 'square' ] // [ 'blue', 'circle' ] // [ 'blue', 'square' ] 演示版 您可以尝试以下库: 要么直接。 或
【文件预览】:
big-cartesian-main
----.gitattributes(19B)
----.github()
--------ISSUE_TEMPLATE()
--------pull_request_template.md(993B)
--------workflows()
----.prettierrc.yml(25B)
----src()
--------main.js(3KB)
----.eslintrc.yml(48B)
----examples()
--------main.js(1KB)
--------utils.js(767B)
--------README.md(313B)
----CONTRIBUTING.md(2KB)
----gulpfile.js(61B)
----ava.config.cjs(62B)
----LICENSE(11KB)
----test()
--------main.js(2KB)
--------snapshots()
----README.md(4KB)
----.all-contributorsrc(536B)
----.editorconfig(168B)
----CODE_OF_CONDUCT.md(5KB)
----.gitignore(123B)
----CHANGELOG.md(83B)
----package-lock.json(1.08MB)
----package.json(1KB)

网友评论