pub fn from_fn<F>(grid: Grid, f: F) -> Self
    where
        F: FnMut(GridPoint) -> V,
    {
        GridArray {
            grid,
            contents: grid.interior_iter().map(f).collect(),
        }
    }
/// Constructs a [`GridArray`] by using the provided function to compute a value
/// for each point.
Constructs a [`GridArray`] by using the provided function to compute a value
for each point.
Constructs a [ ` GridArray ` ] by using the provided function to compute a value for each point .
pub fn from_fn<F>(grid: Grid, f: F) -> Self
    where
        F: FnMut(GridPoint) -> V,
    {
        GridArray {
            grid,
            contents: grid.interior_iter().map(f).collect(),
        }
    }
pub fn from_fn < F > ( grid : Grid , f : F ) -> Self where F : FnMut ( GridPoint ) -> V , { GridArray { grid , contents : grid . interior_iter ( ) . map ( f ) . collect ( ) , } }
Constructs a [`GridArray`] by using the provided function to compute a value
for each point.
Constructs a [ ` GridArray ` ] by using the provided function to compute a value for each point .
grid
Grid
f
F