2010-10-10 142 views
22

我正在使用Mac OS X/mono上的fsi学习F#,但是很难知道要退出和退出shell的命令。F#交互式shell(fsi)教程?

退出,或者^ D不起作用,^ C也不起作用。什么是停止fsi的命令?

一般来说,哪里可以找到关于fsi的一些教程/用户指南?

+0

如果你有两个问题,最好单独问问他们。 – Joren 2010-10-10 19:47:32

回答

35

使用#help;;寻求帮助,#quit;;退出。

7

当我开始F#在OS X /单,我得到以下

~> fsi 

Microsoft (R) F# 2.0 Interactive build 2.0.0.0 
Copyright (c) Microsoft Corporation. All Rights Reserved. 

For help type #help;; 

通过键入#help我得到:

> #help;; 

    F# Interactive directives: 

    #r "file.dll";;  Reference (dynamically load) the given DLL 
    #I "path";;   Add the given search path for referenced DLLs 
    #load "file.fs" ...;; Load the given file(s) as if compiled and referenced 
    #time ["on"|"off""];; Toggle timing on/off 
    #help;;    Display help 
    #quit;;    Exit 

    F# Interactive command line options: 

     See 'fsi --help' for options 


> 

这些应该提供答案。