Skip to content

Commit

Permalink
test: fix the dummy init implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia committed Oct 20, 2023
1 parent 10bec85 commit cc45965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ListAsBwdLabels.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let nth_opt xs i =
| Invalid_argument _ -> invalid_arg "Bwd.nth_opt"

let init ~len ~f =
try L.init ~len ~f:(fun i -> f ((len-1) - i)) with
try L.rev (L.init ~len ~f) with
| Invalid_argument _ -> invalid_arg "Bwd.init"

let append xs ys = xs @ ys
Expand Down

0 comments on commit cc45965

Please sign in to comment.