Repeat seamless curve along another curve

I have a seamless curve, which I want to repeat along another irregular curve. See screenshot, I want to repeat the curve in the top (A) along the curve (B) in the bottom.

I want the end result to look similar to this, but adjusted to the curve shown above.

It doesn’t matter if the start and end of the curve doesn’t match fully, I can connect these points manually.But it would be great if there is a way to automatically make the seamless curve (A) repeat and rotate according to the irregular curve (B).

Any ideas?

_length to measure the target curve
_line with target length
_arraylinear to multiply the wavy shape
Shorten the reference line or scale the wavy curve
_flow

There is _arrayCrv but it will not deform the object

Hope this helps

Kind regards tom

That worked perfectly, thank you very much!