Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions answers/advanced/sharedNumbers-a.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function shared(x, y) {
if (curr1.value === curr2.value) {
commonNumbers.push(curr1.value);
curr1 = x.next();
curr2 = y.next();
continue;
}

Expand Down
1 change: 1 addition & 0 deletions questions/advanced/sharedNumbers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Create a "shared" function that takes two array iterators
// and returns the numbers common in both arrays.
// Assume the array is sorted in non decreasing order and has no duplicates

/*
const i1 = function* () {
Expand Down