enumeration

Hi, KDB Folks

Please help me understand enumeration from q function reference. What
about a? My understanding is that 1 2 3 is mapped bcd? I tried:

q)x!1 2 3 4 x$bcd

I expected x$abcd (what about a?) Could you explain it with a
more straight forward example.

Again, thank you for your help.

========================================================
enumeration

With a symbol on the left hand side, converts an integer list to an
enumerated symbol list

q)x:abcd
q)x!1 2 3 x$bc`d

Enumerations are 0-based (as well as indexes)

On Tue, Sep 20, 2011 at 10:42 PM, dbtouch <dbtouch@gmail.com> wrote:

Hi, KDB Folks

Please help me understand enumeration from q function reference. What
about a? My understanding is that 1 2 3 is mapped bcd? I tried:

?q)x!1 2 3 4 x$bcd

I expected x$abcd (what about a?) Could you explain it with a
more straight forward example.

Again, thank you for your help.

========================================================
enumeration

With a symbol on the left hand side, converts an integer list to an
enumerated symbol list

q)x:abcd
q)x!1 2 3 x$bc`d


Submitted via Google Groups

Thanks a lot, Raghu and Oleg.On Sep 21, 12:46?am, raghuram p <gpraghu…> wrote:> On Tue, Sep 20, 2011 at 10:42 PM, dbtouch <dbto…> wrote:> > Hi, KDB Folks>> > Please help me understand enumeration from q function reference. What> > about a? My understanding is that 1 2 3 is mapped bcd? I tried:>> > ?q)x!1 2 3 4&gt; &gt; x$bcd>> > I expected x$abcd (what about a?) Could you explain it with a> > more straight forward example.>> > Again, thank you for your help.>> > ========================================================> > enumeration>> > With a symbol on the left hand side, converts an integer list to an> > enumerated symbol list>> > q)x:abcd> > q)x!1 2 3&gt; &gt; x$bc`d>> > –> >

Submitted via Google Groups</dbto…></gpraghu…>