mirror of
https://github.com/Fechin/reference.git
synced 2026-11-28 08:15:03 +03:00
31 lines
434 B
Markdown
31 lines
434 B
Markdown
---
|
|
title: Ocaml
|
|
date: 2024-08-06 00:00:00
|
|
background: bg-[#eeeee4]
|
|
tags:
|
|
- scientific
|
|
- functional
|
|
categories:
|
|
- Programming
|
|
intro: |
|
|
The [Ocaml](https://www.ocaml.org/) cheat sheet is a one-page reference sheet for the Ocaml programming language.
|
|
plugins:
|
|
- copyCode
|
|
---
|
|
|
|
## Getting Started
|
|
|
|
### hello.ml
|
|
```ml
|
|
let () =
|
|
let message = "Hello, World!" in
|
|
Printf.printf "%s\n" message
|
|
```
|
|
|
|
### Varaibles
|
|
```ml
|
|
|
|
|
|
|
|
```
|