Skip to content

Commit

Permalink
fix: missing docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
fgdorais committed May 30, 2024
1 parent 6d9236a commit c80ca8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Batteries/Data/DArray/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,12 @@ def forIn [Monad m] (a : DArray n α) (init : β) (f : Sigma α → β → m (Fo
| .done r => pure r
| .yield r => pure r
where
/-- Step function for `forIn`. -/
step : ForInStep β → {i : Fin n} → α i → m (ForInStep β)
| .done r, _, _ => pure (.done r)
| .yield r, i, x => f ⟨i, x⟩ r

instance (α : Fin n → Type _) [Monad m] : ForIn m (DArray n α) (Sigma α) where
instance (m : Type _ → Type _) (α : Fin n → Type _) : ForIn m (DArray n α) (Sigma α) where
forIn := forIn

/--
Expand Down

0 comments on commit c80ca8b

Please sign in to comment.