← BYTES
KDB·Starter·Ref: 33.1.9

In q, what is the difference between an atom and a list?

Have a question about this video? Mention reference 33.1.9 when you contact us.

a.There is no difference; the terms are interchangeable
b.An atom is a single scalar value; a list is a sequence of values (which may itself be a vector of atoms)
c.An atom can only hold text; a list can only hold numbers
d.An atom is always 8 bytes; a list is always variable length
An atom is a single value (e.g. the integer 5); a list is an ordered sequence of values, which in q is commonly a uniformly-typed vector for efficiency.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES3319#KDB