2026-01-23 00:03 UTC
So if it has to be a number the question is - is the array of options, `['Fish', 'Bird']`, 0-indexed or not? I guess 1 is the safest choice but not true to your actual choice.
Replies (1)
-
@wizardbeard@lemmy.dbzer0.com 2026-01-23 00:21
Just for you, I'd enter 18,446,744,073,709,551,61**6** ::: spoiler Explanation 18,446,744,073,709,551,615 is the max value an unsigned 64-bit long value can store. It's absurdly unlikely that any data indexing format supports this many indexes. Then I added 1 to it. 🫠 For when you absolutely, positively, need to make sure you're out of bounds. Negatives aren't enough, because some programming languages allow you to index from the other end using negatives, so -1 is the final item. :::