in reply to reverse function
Hi Sandyyy123
You can visit this page and can read the first para.
You get the expected result without "scalar" in your code.