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|