Thank you! Should be fixed now.
Technical details, if you're curious: The consumption code was relying on the "identity" of an item to know whether it has been consumed, which works for lists because each item has its own unique identity, but not with the JS array that is produced by selectMany
because arrays can contain several instances of the exact same item. By "same item" and "identity", I mean not just that the text is the same, but the actual underlying data that they're pointing to in the computer's memory is the same. Like variables all pointing to the same list - e.g. [animalListAlias=animalList]
will mean that animalListAlias
refers to the exact same thing as animalList
(rather than being a "copy" of animalList
). So I've switched it so the "consumption tracking" uses "indices" of the array rather than the array items themselves. I think this should work fine, but let me know if you notice anything strange.
Thanks again for reporting this!