Skip to content

Commit

Permalink
Update data/tutorials/language/0lg_10_polymorphic_variants.md
Browse files Browse the repository at this point in the history
Co-authored-by: Reynir Björnsson <[email protected]>
  • Loading branch information
2 people authored and Cuihtlauac ALVARADO committed Nov 27, 2023
1 parent fbe9adb commit fc292a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions data/tutorials/language/0lg_10_polymorphic_variants.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,8 @@ The [Error Handling](/docs/error-handling) guide details possible ways to handle
Let's consider this exception-raising code:
```ocaml
# let f_exn m n =
let open List in
let u = init m Fun.id |> map (fun n -> n * n) in
nth u n;;
let u = List.init m Fun.id |> List.map (fun n -> n * n) in
List.nth u n;;
val f_exn : int -> int -> int = <fun>
```

Expand Down

0 comments on commit fc292a3

Please sign in to comment.