Note: I'm very beginner in the whole programming concept and practices.
I've a function which outputs all the combinations of possible numbers. The number of output will be 10,260,432,000. So in my function rather than using the push function to array like this:
result.push([].concat.apply([], [ xs[i], ys[j] ]));
I've to save the output somewhere else, may be in the csv or txt file. The full code is here . So how can I edit the function so that it would save the output to the file instead of memory. For now this function crash if I would to use 30 numbers in the original array.
It is also ok to save all those output array in database too.