← BYTES
KDB·Starter·Ref: 33.1.13
In q, applying `+` to two equal-length lists (e.g. `1 2 3 + 10 20 30`) does what?
Have a question about this video? Mention reference 33.1.13 when you contact us.
a.Raises a type error -- arithmetic only works on atoms
b.Adds the lists element-wise, atomic to each pair of elements
c.Concatenates the two lists into one longer list
d.Multiplies the lists element-wise
q's arithmetic operators are atomic: applied to two equal-length lists, they operate element-wise, so `1 2 3 + 10 20 30` yields `11 22 33`.
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#BYTES33113#KDB