Dear All,
Please read the code below:
First, I define this:
apply:{[container; indices; function]
result: container;
result[indices]: function each container indices;
: result};
which is similar to the function of “@”. This way is what I learned from ( http://www.kdbfaq.com/kdb-faq/how-do-i-use-the-functional-form-of-at-apply.html )
Second, I try this “apply”,
list: 1 + til 8;
apply[list; 0; neg];
the result is fine: -1 2 3 4 5 6 7 8
Third, I tried this on “apply”:
apply[`list; 0; neg];
but the compiler complaints : `type
why is this?
Thank you in advance?
Best Regards,
Wenhao SHE