Search Wiki:

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.

These samples can be used with either VS2010 Beta2, or with VS2008 and the F# May CTP.

Download the most recent version of F# at: http://msdn.microsoft.com/fsharp/
Download the most recent F# Samples download at: FSharp Samples v0.3

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.
samples.jpg

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.

Scripting

3DVisualiztion: An F# script for graphing 3D functions using DirectX. Note: Requires the seperate DirectX SDK be installed.
visualization.jpg
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
forms.jpg

Simulation

ConcurrentLife: An F# implementation of Conway's Game of Life, using Windows Forms and .NET concurrency features
life.jpg
SolarSystem: A Solar System simulation application, taking advantage of Units of Measure in F# to do physics simulation
solarsystem.jpg

Send any comments or questions about these samples to fsbugs@microsoft.com.
Last edited Oct 20 at 6:29 AM  by MichaelHale, version 13
Comments
ArtScott wrote  Oct 26 at 10:40 PM  
F# Microo Samples Explorer ... very helpful

M_O wrote  Thu at 6:38 AM  
Why is the Visualizer sample missing in the VS2010 version? I would really like to try it.

Updating...
Page view tracker