The F# Samples
A collection of F# sample code, from introductory tutorials to full example F# projects. These samples illustrate the use of F# for a range of programming tasks.
Download the most recent version of F# at:
http://msdn.microsoft.com/fsharp/Download the most recent F# Samples download at:
FSharp Samples v0.1
Getting Started
Samples101: An interactive WinForms application which shows 101 small F# samples.
Introductory Tutorial: A quick overview of many of the most important F# language concepts.
Office
Excel: Example of interacting with Excel from F#, using the Excel automation APIs. Requires Excel 2003 or 2007.
Word: Example of interacting with Word from F#, using the Word automation APIs. Requires Word 2003 or 2007.
Math
NativeCodeBinding: Examples of using LAPACK from F#. Requires LAPACK to be installed separately.
Scripting
3DVisualiztion: An F# script for graphing 3D functions using DirectX.
WebCrawl: F# Scripts which crawl web pages collecting links. Great example of F# scripting.
WinForms: Two examples of using Windows Forms to display UI programattically in an F# script
Simulation
ConcurrentLife: An F# implementation of Conway's Game of Life, using Windows Forms and .NET concurrency features
SolarSystem: A Solar System simulation application, taking advantage of Units of Measure in F# to do physics simulation
Send any comments or questions about these samples to
fsbugs@microsoft.com.