Search code examples
kdb

How do I set initial value of a scan to be a list?


I'm trying to do:

(.5 .5) (+\) (.9 .2;.4 .1)

Expected result:

1.4 0.7
1.8 0.8

But instead I get 'type.

I cannot seem to use a list as the leftmost argument. What am I doing wrong?


Solution

  • q)(+\)[0.5 0.5;(.9 .2;.4 .1)]
    1.4 0.7
    1.8 0.8