is there a good way to return the max number of arguments that you can enter into a function? i tried
f:{x+y+z}
while[{.[f;x;“ERROR”]} ) <> “ERROR”; count x] where x: til 5
is there a good way to return the max number of arguments that you can enter into a function? i tried
f:{x+y+z}
while[{.[f;x;“ERROR”]} ) <> “ERROR”; count x] where x: til 5
Hi Ben,
you can use the value function on your function to get a summary of its structure, including the parameter list:
q)f:{x+y+z}q)value f0x7a794178410003
xy
zsymbol$(),
5 3 4 1 2"..f"“”-1"{x+y+z}"q)count value[f] 13`
NB: the structure of the result of this functions subject to change between versions. See https://code.kx.com/q/ref/value/#lambda