std: align PriorityQueue and ArrayList API-wise

ArrayList uses `items` slice  to store len initialized items, while
PriorityQueue stores `capacity` potentially uninitialized items.

This is a surprising difference in the API that leads to bugs!

https://github.com/tigerbeetle/tigerbeetle/pull/1948
9f4f43cf7fAlex Kladov committed on 5/20/2024, 4:04:20 PM· committed by Andrew Kelleyparent8aae0d8
1 file changedLine totals unavailable