On Sunday, 7 February 2021 at 21:31:11 UTC, Jack wrote:
assumeSafeAppend() wouldn't work in this case because I don't know the number of items that is going to be added to the array.
I don't think that matters. assumeSafeAppend seems appropriate for your need.