Menu

F#

This page contains a few articles I wrote about F# language (a programming language by Microsoft Research, sharing a core language with OCaml).

English

Pretty printer This article explains how use the F# generic printer and the StructuredFormat to pretty print any ast. The final example contains tree manipulation, pretty printing and operators overloading. A lazy example This is a short example. I translated a function from Haskell, it shows a way to get lazy evaluation in F#.

French

Pretty Printer Traduction de l'article anglais, cette page explique comment utiliser l'affichage générique de F# (bibliothèque StructuredFormat), pour l'adapter à ses propres besoins. L'exemple final contient de la manipulation d'arbres, du pretty printing et de la surcharge d'opérateurs. Active Patterns Cet article explique comment utiliser les active patterns en F#, fonctionnalité puissante permettant d'étendre le concept de pattern matching.