2015.07.07 06:50 PM
2015.07.12 09:16 AM
2015.07.14 01:09 AM
q){x+y}[0N!1;0N!2]
2
1
3
Also, not sure if you intended to call f[(p1;p2;p3)], or f[p1;p2;p3]. Note that those 2 are different, the first one takes 1 parameter, while the second takes 3. And as @Erik Friis mentioned your f p1 p2 p3 won't work.
Hi,Here is another language lawyerly question:Usual function call syntax is like : f[(p1;p2;p3)]Then how does the interpreter know the recognize the following as a function callf p1 p2 p3 ?Then if you were to think about function in bigger complex expressions, the question becomes even more interesting ?Is there an general way to figure these correct syntax / order of evaluation questions out ?
2015.07.14 09:06 AM
2015.07.17 03:36 AM
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.