TWiki
>
Main Web
>
UsingFSharpOnPatas
(2010-07-27, gslayden)
(raw view)
E
dit
A
ttach
---++++ Using F# on Patas You can experiment with Microsoft's functional programming language on patas. The interactive interpreter can be started with: <pre>$ mono /opt/fsharp/bin/fsi.exe --gui-</pre> 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: <strong> <pre>let rec factorial = function | 0 -> 1 | n -> n * factorial(n - 1);; val factorial : int -> int > factorial 5;; val it : int = 120 > #quit;;</pre> <br /></strong> -- Main.gslayden - 2010-07-27
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2010-07-27 - 19:41:55 - gslayden
Main
Log In
Main Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
Main
Sandbox
TWiki
Copyright &© 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