How to properly apply a monadic functions and projections in k?
KDB+ 3.6 2018.05.17 Copyright (C) 1993-2018 Kx Systems
q) \
(5*;10*)@\:2
10 20
({x};{x*x})@\:2
2 4
(#;#)@\:2
(#[2];#[2])
Why 2 first examples work properly and the last one doesn't? I thought it would be:
(#;#)@\:2
1 1
but it gives me a strange result.