2,619
次編輯
Tankianting(討論 | 貢獻) |
Tankianting(討論 | 貢獻) |
||
行 45: | 行 45: | ||
- : int list = [3; 1; 2] | - : int list = [3; 1; 2] | ||
</pre> | </pre> | ||
== n 維陣列== | |||
<code>Array.make [大小] [初始值]</code> | |||
== 得到某自定資料型別的某個 item == | == 得到某自定資料型別的某個 item == | ||
行 52: | 行 56: | ||
* [https://stackoverflow.com/questions/16594333/how-to-include-other-source-files-using-the-use-directive-in-ocaml How to include other source files using the #use directive in OCaml? - StackOverflow] | * [https://stackoverflow.com/questions/16594333/how-to-include-other-source-files-using-the-use-directive-in-ocaml How to include other source files using the #use directive in OCaml? - StackOverflow] | ||
* [https://ocaml.org/learn/tutorials/modules.zh.html OCaml 的說明文件] | * [https://ocaml.org/learn/tutorials/modules.zh.html OCaml 的說明文件] | ||
* [https://v2.ocaml.org/api/Array.html OCaml 的說明文件 module Array] | |||
[[category:資訊]] | [[category:資訊]] |