Posted By: NorbertSz
Get length of a series() - 09/13/22 09:28
Dear all,
Is there a solution for getting the length of a series()?
I have multiple series with different lengths, and a function is iterating through the series. It would be nice if I would not needed to store and pass the length as function parameter, just get that inside the function. For example like the C++ <vector> does:
Is there a solution for getting the length of a series()?
I have multiple series with different lengths, and a function is iterating through the series. It would be nice if I would not needed to store and pass the length as function parameter, just get that inside the function. For example like the C++ <vector> does:
Code
vars asd = series (0, 100); if (asd.length() == 100) printf("yep, it's 100"); doSomethingWithEveryElement(asd); ... void doSomethingWithEveryElement(vars* s){ for (int i = 0; i < (*s).length(); i++){ doSomething((*s)[i]); } }