Repeat zig zag-curve

Hi, does anyone know how to make this zig-zag shaped curve in a better way? Is there any function I can use instead of using the “move-function”?

What function do you use to repeat a shape?

Thanks!

Plattbärlag.gh (15.6 KB)

See this

Just change the formula if you need Zigsaw

If you need more pure line with fillet corner


20181105_wave pattern_LD3.gh (15.9 KB)