Wednesday, June 29, 2011

F# Hello world example

  1. On the File menu, point to New, and then click Project.

  2. If you cannot see Visual F# in the Templates Categories pane, click Other Languages, and then click Visual F#. The Templates pane in the center lists the F# templates.

  3. Look at the top of the Templates pane to make sure that .NET Framework 4 appears in the Target Framework box.

  4. Click F# Application in the list of templates.

  5. Type a name for your project in the Name field.

  6. Click OK.






printfn "Hello World to F# language "


// Declare a local value (inferred type is string)
let world = "world"

// Using '%s' format specifier to include string parameter
printfn "Hello %s!" world

Featured Posts

✨ Tired of the same old Windows Start Menu and Taskbar?

  ✨ Tired of the same old Windows Start Menu and Taskbar? In this video, I’ll show you how to completely customize your Windows experience ...