Pradigms of programming in O'Caml

Grzegorz Bancerek
Politechnika Białostocka, Erasmus, computer science, 2007

OCaml (Objective Caml) is a programming language supporting the following paradigms: imperative, functional, object oriented, and generic programming. OCaml is used to develop considerable projects by several companies: Dassault, France Telecom, Microsoft, IBM, and CEA. It is also widely used for teaching of programming (e.g., Warsaw University) and for in scientific projects using symbolic computation: provers (Coq), verification of program corretnesss (Why).

More info on OCaml may be found at

Programme

Exercises

  1. Lists (functional programming)
  2. Arrays (imperative programming)

Solutions

  1. Lists
  2. Arrays
  3. dijkstra.ml (example of a graph)
  4. union-find.ml
Grzegorz Bancerek