Convert a matrix ("DataFrame") to printable string
V already has a built-in enumeration for plain arrays:
for i, a in arr {
}

Which removes six unnecessary lines of code.
List comprehension would remove another dozen lines, and what little I understand about V's map/reduce, it seems very limited (think lambda without closure) so that is not an option. Python's list comprehension with zip is an efficient way to reduce dumb code, but perhaps it defeats V's &quot;only one way to do things.&quot; And perhaps this is a rare scenario.