Re:
by gabiteodoru on Wednesday July 09, 2025 @08:16PM
(#44516009)
Or, even better, also from the cookbook: {(2#x)#1,x#0} But this really borders on obfuscation :P
[ Parent
| on HN ]
Re:
by leprechaun1066 on Sunday July 13, 2025 @02:40PM
(#44552471)
That does require someone to know that the take operator continues to treat the y list as circular when x is a list.
I think this form might be a bit easier: {(x,x)#(x*x)#1,x#0}
Re:
by gabiteodoru on Sunday July 13, 2025 @06:07PM
(#44554213)
But then you're not flexing your q muscles. Btw this is from the cookbook, these obfuscated patterns are actually recommended! https://code.kx.com/phrases/matrix/#identity-matrix-of-order...