F# 指南F# Guide

F # 是一种功能的编程语言.NET 上运行。F# is a functional programming language that runs on .NET. 它还具有对对象,blend 功能和对象编程的任何问题的实际解决方案让你完全支持。It also has full support for objects, letting you blend functional and object programming for pragmatic solutions to any problem.

open System // Get access to functionality in System namespace.

// Function: takes a name and produces a greeting.
let getGreeting name =
    sprintf "Hello, %s! Isn't F# great?" name

// Use the EntryPoint attribute to run the program.
[<EntryPoint>]
let main args =
    // Define a list of names
    let names = [| "Don"; "Julia"; "Xi" |]

    // Print a fun greeting for each name!
    names
    |> Array.map getGreeting
    |> Array.iter (fun greeting -> printfn "%s" greeting)

    0

F # 即将其核心的工作效率。F# is about productivity at its heart. 对 F # 的工具支持是无处不在和完整的高级功能。The tooling support for F# is ubiquitous and full of advanced features.

学习 F #Learning F#

F # 的教程及大量代码示例的主要语言功能的概述。Tour of F# gives an overview of major language features with lots of code samples. 如果你不熟悉 F # 并想要感受语言的工作原理,则建议这样。This is recommended if you are new to F# and want to get a feel for how the language works.

要开始使用 Visual Studio 中的 F #如果要在 Windows 上的虚拟机和模板,需要完整的 Visual Studio IDE (Integraded 开发环境) 体验。Get started with F# in Visual Studio if you're on Windows and want the full Visual Studio IDE (Integraded Development Environment) experience.

开始使用 Visual Studio 中的 F # 适用于 Mac如果是在 macOS 上并想要使用 Visual Studio IDE。Get started with F# in Visual Studio for Mac if you're on macOS and want to use a Visual Studio IDE.

要开始使用 Visual Studio 代码中的 F #如果所需的轻量跨平台和功能打包 IDE 体验。Get Started with F# in Visual Studio Code if you want a lightweight, cross-platform, and feature-packed IDE experience.

要开始使用 F # 使用.NET Core CLI如果你想要使用命令行工具。Get started with F# with the .NET Core CLI if you want to use command-line tools.

F # 和 Xamarin 入门移动使用 F # 的编程。Get started with F# and Xamarin for mobile programming with F#.

用于 Azure 笔记本的 F #是一个教程,帮助您了解可用的托管 Jupyter 笔记本中的 F #。F# for Azure Notebooks is a tutorial for learning F# in a free, hosted Jupyter Notebook.

参考资料References

F # 语言参考是官方、 全面引用所有 F # 语言功能。F# Language Reference is the official, comprehensive reference for all F# language features. 每篇文章说明了的语法,并显示代码示例。Each article explains the syntax and shows code samples. 可以使用内容的表中的筛选器栏以查找特定的文章。You can use the filter bar in the table of contents to find specific articles.

F # 核心库参考为 F # 核心库的 API 参考。F# Core Library Reference is the API reference for the F# Core Library.

附加指南Additional guides

F # 乐趣和利润是有关学习 F # 的全面且非常详细书。F# for Fun and Profit is a comprehensive and very detailed book on learning F#. 其内容和作者均由 F # 社区钟爱。Its contents and author are beloved by the F# community. 目标受众是主要开发人员提供面向对象编程背景。The target audience is primarily developers with an object oriented programming background.

F # 编程 Wikibook是有关学习 F # wikibook。F# Programming Wikibook is a wikibook about learning F#. 它也是在 F # 社区的产品。It is also a product of the F# community. 目标受众是那些不熟悉 F # 中,具有很少的面向对象编程背景的人员。The target audience is people who are new to F#, with a little bit of object oriented programming background.

了解 F # 整个视频Learn F# through videos

YouTube 上的 F # 教程将极佳介绍 F # 使用 Visual Studio、 1.5 小时内显示大量很好示例。F# tutorial on YouTube is a great introduction to F# using Visual Studio, showing lots of great examples over the course of 1.5 hours. 目标受众是那些不熟悉 F # 的 Visual Studio 开发人员。The target audience is Visual Studio developers who are new to F#.

F # 的编程简介是一种很好的视频系列 Visual Studio Code 用作主要编辑器。Introduction to Programming with F# is a great video series that uses Visual Studio Code as the main editor. 视频系列从头开始和结束的构建基于文本的 RPG 视频游戏。The video series starts from nothing and ends with building a text-based RPG video game. 目标受众是首选 Visual Studio Code (或的轻型 IDE) 以及对 F # 不熟悉的开发人员。The target audience is developers who prefer Visual Studio Code (or a lightweight IDE) and are new to F#.

What's New in 的 F # 的开发的 Visual Studio 2017是视频课程,F # 在 Visual Studio 2017 中显示的一些较新的功能。What's New in Visual Studio 2017 for F# For Developers is a video course that shows some of the newer features for F# in Visual Studio 2017. 目标受众是那些不熟悉 F # 的 Visual Studio 开发人员。The target audience is Visual Studio developers who are new to F#.

其他有用的资源Other useful resources

F # 代码段网站包含的代码片段演示如何执行几乎任何操作在 F # 中,从绝对初学者到非常高级的代码段大规模集。The F# Snippets Website contains a massive set of code snippets showing how to do just about anything in F#, ranging from absolute beginner to highly advanced snippets.

F # 软件 Foundation Slack是一个很好,新手设计和专家相似,就是高度处于活动状态,并且具有一些世界上最最佳 F # 程序员可用于聊天。The F# Software Foundation Slack is a great place for beginners and experts alike, is highly active, and has some of world's best F# programmers available for a chat. 我们强烈建议联接。We highly recommend joining.

F# 软件基金会The F# Software Foundation

尽管 Microsoft 是主 F # 语言和 Visual Studio 中的其工具的开发人员,F # 还支持独立的基础,F # 软件 Foundation (FSSF)。Although Microsoft is the primary developer of the F# language and its tools in Visual Studio, F# is also backed by an independent foundation, the F# Software Foundation (FSSF).

F# 软件基金会的任务是提升、保护和改进 F# 编程语言,以及支持和促进国际化的多元 F# 程序员社区的成长。The mission of the F# Software Foundation is to promote, protect, and advance the F# programming language, and to support and facilitate the growth of a diverse and international community of F# programmers.

若要了解详细信息并参与,请查看 fsharp.org。可以自由地加入,和 F # 开发人员 foundation 中的网络是你不想要错过的东西 !To learn more and get involved, check out fsharp.org. It's free to join, and the network of F# developers in the foundation is something you don't want to miss out on!