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

No comments:

Post a Comment

Thank you for Commenting Will reply soon ......

Featured Posts

#Linux Commands Unveiled: #date, #uname, #hostname, #hostid, #arch, #nproc

 #Linux Commands Unveiled: #date, #uname, #hostname, #hostid, #arch, #nproc Linux is an open-source operating system that is loved by millio...