Loop through array of scalar values

Hi, I’m trying to loop through an array of scalar values. From InfluxDB document Extract scalar values in Flux, if we use the findColumn method, it will return an array of scalar values. I have tried to access the elements of the array by arr[idx]. Is there any way to loop through the array because we don’t know its length?

I was looking for the exact same thing myself, but alas, according to Work with arrays in Flux | Flux 0.x Documentation this is not possible at this time (at least for arrays). No idea whether it’s going to be implemented either.

My current thinking is writing a small python script that does the looping for me and writes it back to the database, but it irks me a bit to not be able to do it all in flux. Here’s hoping that we’ll get it eventually!