Tags:
create new tag
view all tags
---++++ 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
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2010-07-27
-
gslayden
Home
Site map
Main web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback