🌐 Accéder au Site →
Un clic suffit pour commencer votre voyage OCaml !
| Section | Description |
|---|---|
| Introduction | Bases d'OCaml et installation |
| Types & Opérateurs | Types de base et opérations |
| Fonctions | Programmation fonctionnelle |
| Récursivité | Récursion et pattern matching |
| Listes | Manipulation des listes |
| Arbres Binaires | Structures de données complexes |
| Exercices | 4 séries complètes avec solutions |
| Casse-têtes | Défis pour les champions |
- 100+ exemples de code commentés
- 40+ exercices progressifs
- Solutions détaillées avec explications
- PDF téléchargeables pour travailler hors ligne
- Éditeur virtuel intégré
- Exercices interactifs
- Progression sauvegardée
- Recherche rapide dans le contenu
# Le site est disponible instantanément
https://siamsell.github.io/ocaml-tutorial/# 1. Clonez le repository
git clone https://github.com/siamsell/ocaml-tutorial.git
# 2. Naviguez dans le dossier
cd ocaml-tutorial
# 3. Lancez un serveur local (Python)
python3 -m http.server 8000
# 4. Ouvrez dans votre navigateur
# http://localhost:8000# Sur Ubuntu/Debian
sudo apt install ocaml opam
# Sur macOS
brew install ocaml opam
# Sur Windows (via WSL)
wsl --install
sudo apt install ocaml opam| Chapitre | OCaml Concept | Exemple |
|---|---|---|
| 1 | Variables & Types | let x = 42;; |
| 2 | Fonctions | let carre x = x * x;; |
| 3 | Récursivité | let rec fact n = ... |
| 4 | Listes | [1; 2; 3] @ [4; 5] |
| 5 | Pattern Matching | match x with | A -> ... |
| 6 | Arbres | type 'a arbre = ... |
(* Exemple interactif - Testez directement ! *)
let bonjour nom =
Printf.printf "Bonjour %s, bienvenue en OCaml !\n" nom;;
bonjour "Étudiant";;
(* Résultat: *)
(* Bonjour Étudiant, bienvenue en OCaml ! *)Nous adorons les contributions ! Voici comment aider :
- Signaler un bug – Ouvrir une Issue
- Proposer une fonctionnalité – Discutons-en !
- Corriger une erreur – Pull requests bienvenues
- Améliorer la documentation – Aidez les futurs étudiants
Workflow de contribution :
# 1. Fork le projet
# 2. Créez une branche
git checkout -b feature/amazing-feature
# 3. Commitez vos changements
git commit -m 'Add some amazing feature'
# 4. Poussez sur la branche
git push origin feature/amazing-feature
# 5. Ouvrez une Pull Request- "Real World OCaml" – Y. Minsky et al.
- "OCaml from the Very Beginning" – J. Whitington
- "More OCaml" – J. Whitington
Basé sur les enseignements de M. Chabani (UMBB)
Développé avec passion pour la communauté OCaml
Hébergé gratuitement sur GitHub Pages
**Si ce projet vous aide, n'oubliez pas de mettre une étoile **
🤍La programmation fonctionnelle n'a jamais été aussi belle🤍