An Array.ofFn equivalent that reduces in the kernel under the
module system.
Equations
- Hex.Array.ofFn' f = (List.ofFn f).toArray
Instances For
A Vector.ofFn equivalent that reduces in the kernel under the
module system.
Equations
- Hex.Vector.ofFn' f = Vector.mk (List.ofFn f).toArray ⋯
Instances For
@[simp]
@[simp]
@[simp]
@[csimp]
Compiled code uses the core Array.ofFn, which fills an array of known
capacity instead of building a List first. The List route exists
only so that the kernel can reduce it.
@[csimp]
The Hex.Vector.ofFn' analogue of
Hex.Array.ofFn'_eq_ofFn'.