Successfully reported this slideshow.
Upcoming SlideShare
×

# La programmation fonctionnelle

195 views

Published on

This is a technical presentation about Functional Programming for Clermont'ech API Hour #27, 2017/05/4.

Published in: Internet
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

### La programmation fonctionnelle

1. 1. La programmation fonctio-quoi ? API Hour #27 — 4 mai 2017 Richard Degenne
2. 2. À propos • • • • • • •
3. 3. Sommaire • • •
4. 4. Histoire
5. 5. Histoire • • • •
6. 6. Histoire • • • • • • • • • • • • • •
7. 7. Histoire • • • • • • •
8. 8. Définition • • • • • • •
9. 9. Définition def sum(l): sum = 0 for e in l: sum += e return sum
10. 10. Définition def sum(l): sum = 0 for e in l: sum += e return sum let rec sum l = match l with | [] -> 0 | h::t -> h + sum t
11. 11. Enjeux • • • • •
12. 12. Enjeux read x; x = x + 1; write x; read x; x = x * 2; write x; x = 0
13. 13. Enjeux read x; x = x + 1; write x; read x; x = x * 2; write x; x = 0 read x; x = x * 2; write x; read x; x = x + 1; write x; x = 1
14. 14. read x; x = x + 1; write x; Enjeux read x; x = x + 1; write x; read x; x = x * 2; write x; x = 0 read x; x = x * 2; write x; read x; x = x + 1; write x; x = 1 read x; x = x * 2; write x; x = 2
15. 15. read x; x = x + 1; write x; Enjeux read x; x = x + 1; write x; read x; x = x * 2; write x; x = 0 read x; x = x * 2; write x; read x; x = x + 1; write x; x = 1 read x; x = x * 2; write x; x = 2 read x; read x; x = x + 1; write x; x = x * 2; write x; x = 0
16. 16. Conclusion • • • • • •
17. 17. Merci pour votre attention !