Skip to content

Commit

Permalink
Switch to our nth_opt
Browse files Browse the repository at this point in the history
  • Loading branch information
Negabinary committed Dec 12, 2024
1 parent 781f253 commit 317d7af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/haz3lweb/view/StepperView.re
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ module Selection = {
let a: option(Model.a) =
mr.history
|> Aba.get_as
|> List.nth_opt(_, List.length(mr.history |> Aba.get_as) - n - 1);
|> ListUtil.nth_opt(List.length(mr.history |> Aba.get_as) - n - 1);
switch (a) {
| Some(Calculated(a)) =>
let+ x =
Expand All @@ -391,7 +391,7 @@ module Selection = {
let a: option(Model.a) =
mr.history
|> Aba.get_as
|> List.nth_opt(_, List.length(mr.history |> Aba.get_as) - i - 1);
|> ListUtil.nth_opt(List.length(mr.history |> Aba.get_as) - i - 1);
switch (a) {
| Some(Calculated(a)) =>
let+ x =
Expand Down

0 comments on commit 317d7af

Please sign in to comment.