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.

開始使用 F # Visual Studio 中如果您是在 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.

開始使用 F # 在 Visual Studio for 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.

開始使用 F # Visual Studio 程式碼中如果您想要跨平台的輕量型和功能的 IDE 體驗。Get Started with F# in Visual Studio Code if you want a lightweight, cross-platform, and feature-packed IDE experience.

開始使用 F # 和.NET 核心 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#.

F # Azure 筆記本的是了解 F # 中可用、 託管 Jupyter 筆記本教學課程。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 # 核心程式庫中的應用程式開發介面參考。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 程式碼做為主要的編輯器。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 程式碼 (或是輕量型 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# Software Foundation (F# 軟體基金會)The F# Software Foundation

雖然 Microsoft 是主要的 F # 語言和 Visual Studio 中的工具開發人員,但 F # 也支援獨立的 foundation、 F # 軟體基礎 (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# Software Foundation 的使命是促進、保護和推展 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。若要加入,免費且 foundation 中的 F # 開發人員的網路是您不希望錯過 !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!