Arrays as finite maps with defaults #
Compiled checkers keep finite maps from numbers to values in arrays indexed by the number,
reading past the end as a default. Array.setGrow writes an entry, first padding the array with
the default up to its index.
Main definitions #
Array.setGrow: write an entry, growing the array as needed.
Main results #
Array.getD_setGrow,Array.getD_setIfInBounds_self: reading after a write, and after resetting an entry to the default.Array.lt_size_setGrow,Array.size_le_size_setGrow: the written index is in range, and the array only grows.