I am accessing the lines through tangentLines.tangentLines[index]. However, when debugging the lines in a part studio with a basic sketch, upon adding more lines (starting around 4-5 lines), some lines seem to get skipped over, while others have multiple debug vectors. Is there a consistent way to get an array/map of all distinct lines in order of a path, from one end to another?

For some context on why this is happening, evPathTangentLines divides up the path by the total length. So if some of the lines are long and some are short, you can imagine that an equal division based on length may not actually hit all of the lines. @konstantin_shiriazdanov 's solution will provide you with what you need, but you may also have to flip the direction if you need the edge directions to be constantly "forward" in the path:

For some context on why this is happening, evPathTangentLines divides up the path by the total length. So if some of the lines are long and some are short, you can imagine that an equal division based on length may not actually hit all of the lines. @konstantin_shiriazdanov 's solution will provide you with what you need, but you may also have to flip the direction if you need the edge directions to be constantly "forward" in the path: