Finite optional traversal #
A successful finite traversal retains the value returned at every coordinate, including when the index type is empty. The temporary buffer is confined to the internal representation proof.
@[simp]
theorem
TorchLean.Tensor.Internal.sequenceFinM_pure
{m : Type → Type}
[Monad m]
[LawfulMonad m]
{α : Type}
{n : ℕ}
(values : Fin n → α)
:
Sequencing a pure finite family retains the original indexed values.