Computer Science/프로그래밍언어
OCaml Tutorial | Conditional Statements
토마토.
2022. 3. 8. 18:02
@martini:~$ vim conditional.ml
@martini:~$ ocaml conditional.ml
if (5>3) then print_int 5
else print_int 3;;
if (3==1) then 1 else if (3==2) then 2 else 3;;
true, false
then과 else가 꼭 있어야 함
return type을 통일해줘야 하나?