Difference: UsingFSharpOnPatas ( vs. 1)

Revision 12010-07-27 - gslayden

Line: 1 to 1
Added:
>
>

Using F# on Patas

You can experiment with Microsoft's functional programming language on patas. The interactive interpreter can be started with:

$ mono /opt/fsharp/bin/fsi.exe --gui-

This generally requires you to be using a terminal program that interprets ANSI sequences (Tera Term does not, but SSH Tectia is fine, if you select 'ansi' for the 'terminal answerback' on the "Terminal" tab of the connection profile. Scroll to the right to find the "Terminal" tab)

From the interactive prompt, you can enter and run F# programs:

let rec factorial = function
   | 0 -> 1
   | n -> n * factorial(n - 1);;
val factorial : int -> int
> factorial 5;;
val it : int = 120
> #quit;;

-- Main.gslayden - 2010-07-27

 
This site is powered by the TWiki collaboration platformCopyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Privacy Statement Terms & Conditions