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 Beta1, or with VS2008 and the F# May CTP. If opened in VS2010 Beta1, you will be prompted to upgrade the project, which will then target the .NET4.0 Beta1.

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

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.

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.
Last edited May 20 at 3:34 PM  by LukeH, version 10
Updating...
Page view tracker