vault backup: 2023-09-04 17:01:00
This commit is contained in:
parent
b022a5bc90
commit
c42e94e329
12
.obsidian/workspace.json
vendored
12
.obsidian/workspace.json
vendored
@ -13,7 +13,7 @@
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Algo/Séminaire/Chapter 2 - Functions.md",
|
||||
"file": "Algo/Séminaire/Chapter 1 - CAML basics.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
@ -85,7 +85,7 @@
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "Algo/Séminaire/Chapter 2 - Functions.md",
|
||||
"file": "Algo/Séminaire/Chapter 1 - CAML basics.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
@ -102,7 +102,7 @@
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "Algo/Séminaire/Chapter 2 - Functions.md",
|
||||
"file": "Algo/Séminaire/Chapter 1 - CAML basics.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
}
|
||||
@ -125,7 +125,7 @@
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "Algo/Séminaire/Chapter 2 - Functions.md"
|
||||
"file": "Algo/Séminaire/Chapter 1 - CAML basics.md"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -148,10 +148,10 @@
|
||||
},
|
||||
"active": "13c9bfe482ec2d42",
|
||||
"lastOpenFiles": [
|
||||
"Algo/Séminaire/Introduction.md",
|
||||
"Algo/Séminaire/Chapter 2 - Functions.md",
|
||||
"Algo/Séminaire/Chapter 1 - CAML basics.md",
|
||||
"Mathématiques/Séminaire/Logics/Logics.md",
|
||||
"Algo/Séminaire/Chapter 1 - CAML basics.md",
|
||||
"Algo/Séminaire/Introduction.md",
|
||||
"Algo/Séminaire",
|
||||
"Untitled.canvas",
|
||||
"README.md",
|
||||
|
@ -104,16 +104,16 @@ Error *because x is 1.2 in our current evaluation*
|
||||
- Compatible operator : -. ; +. ; * . ; /.
|
||||
- Booleans: ``bool``
|
||||
- Can be ``true``or ``false``
|
||||
```Ocaml
|
||||
# let x = 2 and y = 1 in x/y > 1;;
|
||||
_: bool = true
|
||||
```Ocaml
|
||||
# let x = 2 and y = 1 in x/y > 1;;
|
||||
_: bool = true
|
||||
|
||||
# let x = 2 and y = 0 in x/y > 1;;
|
||||
Exception: Division by zero
|
||||
# let x = 2 and y = 0 in x/y > 1;;
|
||||
Exception: Division by zero
|
||||
|
||||
# let x = 2 and y = 0 in y<>0 && x/y> 1;;
|
||||
_: bool = false
|
||||
```
|
||||
# let x = 2 and y = 0 in y<>0 && x/y> 1;;
|
||||
_: bool = false
|
||||
```
|
||||
|
||||
|
||||
- Char: `char`
|
||||
@ -121,6 +121,9 @@ _: bool = false
|
||||
```Ocaml
|
||||
# 'a'= 'A';;
|
||||
_: bool = false
|
||||
|
||||
# 'a'
|
||||
- : char = 'a'
|
||||
```
|
||||
|
||||
- String: `string`
|
||||
@ -134,8 +137,7 @@ _: string = "Hello World"
|
||||
# "abc".[1]
|
||||
_: char = "b"
|
||||
```
|
||||
|
||||
|
||||
⚠️ Les minuscules passent avant les majuscules
|
||||
|
||||
### Comparaison
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user