Simplifying data management

Hi all, somewhat new to Grasshopper. If anyone is willing to wade through this script, could you perhaps suggest any ways to simplify what I’ve done to create this surface? Given the amount of repetition in this script, I figure there must be a more efficient way to achieve this pattern.

weaving_surface.gh (62.5 KB)

Have you seen this topic?