F# Language

News in .NET 4 and Visual Studio 2010 release wave – part five

a. Multiparadigm language with support of functional programming, object oriented programming and language oriented programming.

For the sake of the language, simple pow function to return power of value:

> let rec pow n x =
match n with | 0 -> 1.
| n -> x * pow (n – 1) x;;
val pow : int -> float -> float

And after using interactive shell, the result will be:

> square 5.;;
val it : float = 25.0;;

 

This is series of articles News in .NET 4 and Visual Studio 2010 release wave

Links:

The F#.NET Journal: Introduction to F#

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s