minus-squarespikespaz@programming.devtoProgrammer Humor@lemmy.ml•Off by one solitudelinkfedilinkarrow-up6arrow-down1·4 hours agoThere’s another way to think about it which I actually use. Look in the empty bin and say “zero”, then move an apple and say “one”. linkfedilink
minus-squarespikespaz@programming.devtoProgrammer Humor@lemmy.ml•Off by one solitudelinkfedilinkarrow-up17·4 hours agoThat would be wrong in every technical sense. You’re saying that .first() would skip the 0th item. First = leftmost. linkfedilink
There’s another way to think about it which I actually use. Look in the empty bin and say “zero”, then move an apple and say “one”.