1

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 ...


Only top voted, non community-wiki answers of a minimum length are eligible