Page 1 of 1

[V2] Support fn(arr*, var)

Posted: 09 Feb 2023, 00:50
by crocodile
Just like this

Code: Select all

ps:=[1,2,3]
MsgBox test(ps*, 4)

test(a,b,c,d) => 0

Re: [V2] In the tank fn(arr*, var)

Posted: 09 Feb 2023, 14:10
by Chunjee
How do you mean?

like an indexOf function?

Re: [V2] In the tank fn(arr*, var)

Posted: 09 Feb 2023, 16:52
by iseahound

Re: [V2] In the tank fn(arr*, var)

Posted: 09 Feb 2023, 23:14
by ntepa
workaround:

Code: Select all

ps:=[1,2,3]
MsgBox test.Bind(ps*)(4)

test(a,b,c,d) => a ", " b ", " c ", " d

Re: [V2] Support fn(arr*, var)

Posted: 11 Feb 2023, 04:57
by crocodile
@ntepa
Yes, there are many solutions. But none of them are efficient.