Skip to content

Commit fcd7d06

Browse files
author
Cuihtlauac ALVARADO
committed
App partielle
1 parent 9b60e13 commit fcd7d06

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎01/lecture.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,3 +361,22 @@ let rec fibo n = match n with
361361
| 1 -> 1
362362
| n -> fibo (n - 1) + fibo (n - 2)
363363
```
364+
365+
### Application partielles
366+
367+
Il est possible de pas fournir tous les arguments a une fonction.
368+
```ocaml
369+
( + )
370+
```
371+
372+
```ocaml
373+
( + ) 1
374+
```
375+
376+
```ocaml
377+
let f = ( + ) 1
378+
```
379+
380+
```ocaml
381+
f 4
382+
```

0 commit comments

Comments
 (0)