What is the difference between a functional apply approach .[0!y;();xcols x]
, seen in xkey
:
xkey
k){(#x)!.[0!y;();xcols x]}
and a simple function calling: x xcols 0!y
.
Why is it the function apply preferred in xkey
?
And a second question about a call to xcols
from the inside of k)
context - how is it ever works? I could not do the same for some reason:
t:([]a:`a`s`d;b:1 2 3;c:4 5 6)
k).[0!t;();xcols `a`b]
ERROR: 'xcols
(attempt to use variable xcols without defining/assigning first (or user-defined signal))