I'm trying to get the top few results in a topk data type, and then loop over them to print.
Running for over the results brings up an error:
target to iterate over must be a table, set, vector, or string
The docs say it is of type vector, and running |topk_result| brings back the correct count.
example demonstration script attached
Ubuntu, both 2.2 release and 2.2.117 from git.