for k ā length(routes)
This iterates only the single number routes
, classic Julia footgun (numbers can be iterated as single-element collections)
You need for k ā 1:length(routes)
or for k ā eachindex(routes)
, for example.
for k ā length(routes)
This iterates only the single number routes
, classic Julia footgun (numbers can be iterated as single-element collections)
You need for k ā 1:length(routes)
or for k ā eachindex(routes)
, for example.