Skip to content

Commit

Permalink
Array.get api change
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeata committed Nov 14, 2024
1 parent 676db5c commit 7644209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lean/Data/RArray.lean
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ where
.branch mid (go lb mid (by omega) (by omega)) (go mid ub (by omega) h2)

def RArray.ofArray (xs : Array α) (h : 0 < xs.size) : RArray α :=
.ofFn (fun i => xs.get i) h
.ofFn (xs[·]) h

/-- The correctness theorem for `ofFn` -/
theorem RArray.get_ofFn {n : Nat} (f : Fin n → α) (h : 0 < n) (i : Fin n) :
Expand Down

0 comments on commit 7644209

Please sign in to comment.