select w, (-3?t.w _ i) from t

Can I use ‘i’ in this manner?

q)t:(w:-10?`1)
q)select w, (-3?t.w _ i) from t
'type
q)select w, (enlist string -3?t.w _ i) from t
'type

To: personal-kdbplus@googlegroups.comX-Mailer: Apple Mail (2.1084)> On May 16, 2011, at 10:10 PM, ag wrote:> >> Can I use ‘i’ in this manner?>> >> q)t:(w:-10?`1)>> q)select w, (-3?t.w _ i) from t>> 'type>> q)select w, (enlist string -3?t.w _ i) from t>> 'typeif i understand your goal correctlyq)tw-mjepkfoachq)select w,-3?'w _/:i from tw x -------m p k fj f h ke h o mp j f ek c o mf m j ho h k pa o e jc k f hh c p for equivalentlyq)select w,w{-3?x _y}/:i from tw x -------m h c aj p a me m o fp j k fk c e ff k m po p m ha o f cc a j fh m e f