Albin Jose@suppo.fi to Programmer Humor@lemmy.ml · 1 year agoHow dare you ask this? Was it just to get into a programming memes page?suppo.fiimagemessage-square69fedilinkarrow-up1493arrow-down117file-text
arrow-up1476arrow-down1imageHow dare you ask this? Was it just to get into a programming memes page?suppo.fiAlbin Jose@suppo.fi to Programmer Humor@lemmy.ml · 1 year agomessage-square69fedilinkfile-text
minus-squareCompassRed@discuss.tchncs.delinkfedilinkarrow-up14arrow-down1·1 year agoIt depends. If the variable names are arbitrary, then a map is best. If the variable names are just x_1, x_2, x_3, …, x_n, then a list or dynamic array would be more natural. If n is constant, then a vector or static array is even better.
It depends. If the variable names are arbitrary, then a map is best. If the variable names are just x_1, x_2, x_3, …, x_n, then a list or dynamic array would be more natural. If n is constant, then a vector or static array is even better.