Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12655338
array-cartesian.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
556 B
Referenced Files
None
Subscribers
None
array-cartesian.js
View Options
"use strict"
;
const
IntegerCartesian
=
require
(
"./integer-cartesian.js"
);
const
ArrayCartesian
=
function
(
sources
){
const
int_sources
=
sources
.
map
((
list
)=>
list
.
length
);
let
current_int_state
=
null
;
return
{
next
:
function
(){
const
int_next_element
=
IntegerCartesian
.
next
(
int_sources
,
current_int_state
);
current_int_state
=
int_next_element
;
if
(
int_next_element
===
null
)
return
null
;
return
int_next_element
.
map
((
index
,
source_number
)=>{
return
sources
[
source_number
][
index
];
});
}
};
};
module
.
exports
=
ArrayCartesian
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 28, 15:03 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1059871
Default Alt Text
array-cartesian.js (556 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment