NO. the second parameter needs to be an index.
I am sure everybody else understands what I wrote.
So go back to your first example and make v2 an integer and not of type of the record. Then everything will be OK.
Actually, strictly speaking, depending how you implemented it, which you did not, you can also write a version that takes two records, but then you have to write custom code that would never be really helpful.
But I would ignore the last remark and simply implement the V2 parameter as an integer because that is what you exoect and what you want, This is not rocket science, but you simply refuse to read what needs to be done and that is rather annoying.
I am on Tizen OS right now, and struggling with my keyboard layout not working properly, otherwise I would have fixed your first example already. When I have access to my laptop instead of my Samsung TV I will add an example. It is a minutes work.