开发者

F# interactive shell (fsi) tutorial?

I'm learning F# with fsi on Mac OS X/mono, but it's hard to know what command to quit and out to shell.

quit, or ^D does开发者_高级运维n't work, ^C also doesn't work. What's the command to to stop the fsi?

In general, where can I find some tutorial/user's guide about fsi?


Use #help;; for help, #quit;; to quit.


When I start F# in OS X/mono I get the following

~> fsi

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

For help type #help;;

By typing #help I get:

> #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


> 

These should provide your answers.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜