irelephant [he/him]@programming.devM to Software Gore@programming.devEnglish · 5 months agopretty small subtotal.programming.devimagemessage-square26fedilinkarrow-up1152arrow-down13
arrow-up1149arrow-down1imagepretty small subtotal.programming.devirelephant [he/him]@programming.devM to Software Gore@programming.devEnglish · 5 months agomessage-square26fedilink
minus-squarehperrin@lemmy.calinkfedilinkEnglisharrow-up3·5 months agoInstead, use arrays. int[] total = […itemsPriceArrays.flatten()];
Instead, use arrays.
int[] total = […itemsPriceArrays.flatten()];