This commit is contained in:
ggsmith842 committed 2024-08-08 13:51:58 -06:00
1 parent af6368af10
commit 55c9a87f00
2 files changed
+8 -5

No files matched your search

+7 -5
View File
@@ -16,13 +16,14 @@ plugins:
## Getting Started
### hello.ml
```ml
let () =
let message = "Hello, World!" in
Printf.printf "%s\n" message
```
Compile and Run
Compile and Run
```bash
$ ocamlc -o hello.byte hello.ml
@@ -30,12 +31,14 @@ $ ./hello.byte
```
Build and Run with Dune
```bash
$ dune build hello.exe
$ _build/default/hello.exe
```
### Comments
```ml
(* A single line comment *)
@@ -45,6 +48,7 @@ $ _build/default/hello.exe
```
### Expressions and Primitive Types
```ml
(* an expression *)
50 * 50
@@ -66,9 +70,8 @@ let untrue = false
"a string"
```
### Variables
```ml
(* data is immutable in ocaml *)
let x = "a string"
@@ -78,10 +81,9 @@ let z = [1;2;3]
```
### Functions
```ml
let add_two_ints x y =
let sum = x + y in
sum
```
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 256 256"><g fill="none"><g clip-path="url(#skillIconsOcaml1)"><rect width="256" height="256" fill="url(#skillIconsOcaml0)" rx="60"/><path fill="#fff" d="M143.426 232.018c-.547-2.194.548-4.938-.547-7.132c-.548-2.195-2.19-2.195-2.737-3.841c-2.19-4.389-4.927-9.327-4.927-14.814c0-4.389-1.643-8.778-2.19-13.167v-6.584c0-1.098 0-2.195-.547-3.292c0-.549 0-1.646-.548-1.646l.548-1.646c0-.549 4.926-.549 6.569-.549c2.737 0 4.927 0 7.664.549c5.474 0 9.853 0 15.328-.549c11.496-1.646 16.423-6.584 19.16-8.23c10.401-7.132 15.328-19.751 15.328-19.751c1.642-3.841 1.642-10.974 5.474-13.717c4.379-3.84 11.496-3.292 16.423-5.486c2.737-1.098 4.927-2.195 8.211-1.646c2.19.548 6.022 3.292 7.117-.549l-1.643-1.646c4.38-.549 0-9.876-1.642-12.071c-2.737-2.743-6.569-4.389-10.948-5.486c-5.475-1.646-10.402-3.292-15.328-2.195c-8.759 1.646-8.212-3.292-13.139-3.292c-6.021 0-16.97.549-19.16 6.584c-1.094 2.743-1.642 2.743-3.284 4.938c-1.095 1.646 0 3.292-.548 5.487c-.547 2.194-1.642 9.876-2.737 12.619c-1.642 4.389-3.832 9.876-7.664 9.876c-5.474.548-9.853 1.097-14.233-.549c-2.737-1.097-7.116-2.743-9.306-3.292c-10.401-4.389-12.044-8.778-12.044-8.778c-1.094-1.646-3.832-4.938-4.926-8.779c-1.095-4.389-3.285-7.681-3.832-9.876c-1.095-2.194-2.738-6.035-4.38-9.876c-2.19-4.938-4.927-8.778-7.116-10.424c-3.285-2.743-6.022-7.133-12.591-6.035c-1.095 0-5.474.548-8.76 3.291c-2.189 1.647-2.736 5.487-4.926 8.779c-1.095 1.646-3.285 7.133-4.927 11.522c-1.095 3.292-1.642 5.486-3.284 6.584c-1.095 1.097-2.19 2.194-3.832 1.646l-3.285-1.646c-1.642-1.098-4.927-7.133-7.117-10.973c-1.642-3.841-5.474-9.328-7.663-12.07c-3.285-4.39-4.927-5.487-9.854-5.487c-9.854 0-10.949 5.486-15.328 13.716c-2.19 3.841-2.737 9.327-6.57 13.716c-1.642 2.195-8.758 12.62-13.685 14.266v75.714v-.548c.547-1.098.547-2.195 1.095-2.743c2.19-3.841 6.569-7.682 8.759-12.071c1.095-2.195 2.737-4.389 3.832-7.133c.547-1.646 1.095-4.937 2.19-6.583c1.094-2.195 3.284-2.744 5.474-3.292c3.832-.549 6.569 4.938 10.948 7.132c1.642 1.097 10.401 3.841 13.139 4.389c4.379 1.098 8.758 1.646 13.138 2.744c2.19.548 4.38.548 7.116 1.097c2.19 0 10.401.549 10.401 1.097c-3.832 2.195-6.569 7.682-8.21 12.071c-1.643 4.389-2.738 9.327-4.38 13.168c-2.19 4.389-6.57 6.584-6.022 12.07c0 2.195.547 4.389 0 6.584c-.547 2.743-1.642 4.389-2.19 7.133c-1.095 3.292-2.19 13.716-3.284 16.459l8.758-1.097c1.095-2.195 1.643-12.07 2.19-13.168c1.643-4.938 3.832-8.778 7.117-12.619c3.284-3.841 3.284-8.23 4.927-12.619c2.19-4.938 4.926-8.23 7.664-12.619c4.926-7.681 8.211-18.106 18.065-20.301c1.095 0 7.116 4.39 9.853 7.133c3.285 3.292 6.57 6.584 8.759 10.973c3.832 8.23 7.664 20.301 8.759 26.336c.548 3.84 1.095 3.84 3.832 7.132c1.095 1.098 3.285 5.487 4.38 7.133c.547 1.646 2.189 5.486 2.737 7.681c.547 1.097 2.189 4.938 3.284 8.23h8.212c-3.285-9.327-6.022-18.654-7.117-27.982"/></g><defs><linearGradient id="skillIconsOcaml0" x1="127.705" x2="127.705" y1=".12" y2="257.041" gradientUnits="userSpaceOnUse"><stop stop-color="#f29100"/><stop offset="1" stop-color="#ec670f"/></linearGradient><clipPath id="skillIconsOcaml1"><rect width="256" height="256" fill="#fff" rx="60"/></clipPath></defs></g></svg>

After

Width:  |  Height:  |  Size: 3.1 KiB