Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将类型明确标记let myList = [1, 2, 3];为 a list of int's?
let myList = [1, 2, 3];
list of int's
我let xs: 'int list = [1,2,3];通过Try ReasonML尝试失败。
let xs: 'int list = [1,2,3];
它let xs: list(int) = [1,2,3];在 Reason 或let xs: int list = [1; 2; 3]OCaml 中。
let xs: list(int) = [1,2,3];
let xs: int list = [1; 2; 3]