Grasshopper definition: Bridging ends of arrayed subds

I’d like to connect the ends of each SubD in the array to each other, ultimately forming one SubD. Here is a screenshot and the GH definition along with the rhino file that has the SubD.


test.3dm (9.1 MB)
weave grasshopper evol 5.gh (15.3 KB)