Algorithmic construction of one-dimensional arrays
Given the number of elements and a function from index to element, an array can be constructed via
Example
Creation of arrays from
Next, construct an array using this function:
Given the number of elements and a function from index to element, an array can be constructed via
Creation of arrays from
Next, construct an array using this function: