I was just looking at mmin:q)mmink){(x-1)&‘:/y}q)2 mmin til 50 0 1 2 3q)1 &’:/ til 50 0 1 2 3q)1 ,‘:/ til 501 02 13 24 3q)2 ,’:/ til 50 0N1 0 0 0N2 1 1 03 2 2 14 3 3 2q)3 ,‘:/ til 50 0N1 0 0 0N 0 0N2 1 1 0 1 0 0 0N3 2 2 1 2 1 1 04 3 3 2 3 2 2 1is x f’:/ y special? i can’t work out.what ,':/ does.ta, jack.
To: personal-kdbplus@googlegroups.comX-Mailer: Apple Mail (2.1499)you should read this as(x-1)(&‘:)/ya form of iterate (/)x-1 is the number of iterations> 3 ,’:/ til 5is 3(,‘:)/til 5repeat 3 times join-each-pair on til 5Cheers, AttilaOn 17 Nov 2012, at 12:28, Jack Andrews wrote:> I was just looking at mmin:> > q)mmin> k){(x-1)&’:/y}> q)2 mmin til 5> 0 0 1 2 3> q)1 &‘:/ til 5> 0 0 1 2 3> q)1 ,’:/ til 5> 0> 1 0> 2 1> 3 2> 4 3> q)2 ,‘:/ til 5> 0 0N> 1 0 0 0N> 2 1 1 0> 3 2 2 1> 4 3 3 2> q)3 ,’:/ til 5> 0 0N> 1 0 0 0N 0 0N> 2 1 1 0 1 0 0 0N> 3 2 2 1 2 1 1 0> 4 3 3 2 3 2 2 1> > is x f’:/ y special? i can’t work out.what ,':/ does.> > ta, jack.> > – >
Submitted via Google Groups