vault backup: 2023-09-12 16:16:12

This commit is contained in:
Louis Gallet 2023-09-12 16:16:12 +02:00
parent 1b9c17fe27
commit 42e289c63f
Signed by: lgallet
SSH Key Fingerprint: SHA256:qnW7pk4EoMRR0UftZLZQKSMUImbEFsiruLC7jbCHJAY

View File

@ -1,4 +1,5 @@
![[recursivite-meme.png]]
![Alt](https://gitea.louisgallet.fr/lgallet/epicours/raw/branch/main/Algo/S%C3%A9minaire/assets/recursivite-meme.png "recursivity problem")
### 5.1. Simple functions
To create a recursive function we have to use this structure
@ -19,7 +20,7 @@ To create a recursive function we have to use this structure
# fact 4;;
-: int = 24
```
![[fact function response.png]]
![Alt](https://gitea.louisgallet.fr/lgallet/epicours/raw/branch/main/Algo/S%C3%A9minaire/assets/fact%20function%20response.png)
> ⚠️ CAML have a call stack limite (it will block with stack overflow if the limit is reach)
**Basic expression**