Skip to content

Commit 3f855e9

Browse files
feat(iter/cartesian-square): add lib/index.js
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 6c1f6b3 commit 3f855e9

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib/iter/cartesian-square/lib
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2026 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
/**
22+
* Create an iterator of the Cartesian square.
23+
*
24+
* @module @stdlib/iter/cartesian-square
25+
*
26+
* @example
27+
* var iterCartesianSquare = require( '@stdlib/iter/cartesian-square' );
28+
*
29+
* var x = [ 1, 2 ];
30+
*
31+
* var iter = iterCartesianSquare( x );
32+
*
33+
* var v = iter.next().value;
34+
* // returns [ 1, 1 ]
35+
*
36+
* v = iter.next().value;
37+
* // returns [ 1, 2 ]
38+
*
39+
* v = iter.next().value;
40+
* // returns [ 2, 1 ]
41+
*
42+
* // ...
43+
*/
44+
45+
// MODULES //
46+
47+
var main = require( './main.js' );
48+
49+
50+
// EXPORTS //
51+
52+
module.exports = main;

0 commit comments

Comments
 (0)