Skip to content

Commit

Permalink
Fix typos in Seq (#2637)
Browse files Browse the repository at this point in the history
`to_seq` and `of_seq` signatures were inverted.
  • Loading branch information
recoules authored Aug 5, 2024
1 parent 0007489 commit f9196db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions data/tutorials/language/3ds_05_seq.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,18 +334,18 @@ conversions between many datatypes. For instance, here are the signatures of
some of those functions:
* Lists
```ocaml
val List.of_seq : 'a list -> 'a Seq.t
val List.to_seq : 'a Seq.t -> 'a list
val List.to_seq : 'a list -> 'a Seq.t
val List.of_seq : 'a Seq.t -> 'a list
```
* Arrays
```ocaml
val Array.of_seq : 'a array -> 'a Seq.t
val Array.to_seq : 'a Seq.t -> 'a array
val Array.to_seq : 'a array -> 'a Seq.t
val Array.of_seq : 'a Seq.t -> 'a array
```
* Strings
```ocaml
val String.of_seq : string -> char Seq.t
val String.to_seq : char Seq.t -> string
val String.to_seq : string -> char Seq.t
val String.of_seq : char Seq.t -> string
```
Similar functions are also provided for sets, maps, hash tables (`Hashtbl`), and
others. When implementing a datatype module, it is
Expand Down

0 comments on commit f9196db

Please sign in to comment.