print hello world 하는 법은?
print_string "hello world";;
@martini:~$ vim primitives.ml
@martini:~$ ocaml primitives.ml
print_int (5+5);;
@martini:~$ vim primitives_int.ml
@martini:~$ ocaml primitives_int.ml
'Computer Science > 프로그래밍언어' 카테고리의 다른 글
OCaml Tutorial | Introduction to Lists (0) | 2022.03.08 |
---|---|
OCaml Tutorial | Introduction to Pattern Matching (0) | 2022.03.08 |
OCaml Tutorial | Introduction to Functions (0) | 2022.03.08 |
OCaml Tutorial | Introduction to Variables (0) | 2022.03.08 |
OCaml Tutorial | Conditional Statements (0) | 2022.03.08 |