Algorithmic construction of one-dimensional arrays

Uses
- One-dimensional index arrays
- Function application to one-dimensional arrays

Given the number of elements and a function from index to element, an array can be constructed via
 Array(ℕ, ℕ.nz → (elementSort:𝕊)) : Array1D(elementSort)
 elementSort_:𝕊, Array(n:ℕ.nz, fn:(ℕ.nz → elementSort_)) ⇒ fn[IndexArray(n)]

Example

Creation of arrays from example Integer grids. First, define a function interface to Integer intervals:
 example ℤ⋯ℤ ⊆ ℕ.nz → ℤ
 example (a:ℤ ⋯ b:ℤ)[i:ℕ.nz] ⇒ a + (i - 1).

Next, construct an array using this function:
 example Array(5, 3 ⋯ 7) ⇒ {[3, 4, 5, 6, 7]}