2021年4月10日星期六

I got some trouble with ocaml polymorphic function

i need your help please, where is the error in my code ?

let create = Array.make_matrix 10 10;;    let assoc int = create int,create (char_of_int int);;  

the error is

3 | let assoc int = create int,create (char_of_int int);;                                        ^^^^^^^^^^^^^^^^^  Error: This expression has type char but an expression was expected of type           int  
https://stackoverflow.com/questions/67040484/i-got-some-trouble-with-ocaml-polymorphic-function April 11, 2021 at 08:39AM

没有评论:

发表评论