F#

간결하고 강력하며 성능이 좋은 코드를 쉽게 작성할 수 있는 오픈 소스 언어입니다.

시작하기

Windows, Linux 및 macOS에서 지원됨

// 'name' is inferred to be a string based on usage.
let printMessage name =
    printfn $"Hello there, {name}!"

// 'names' is inferred to be a sequence of strings.
let printNames names =
    for name in names do
        printMessage name

let names = [ "Ana"; "Felipe"; "Emillia" ]
printNames names
                                     
let square x = x * x
let isOdd x = x % 2 <> 0

let sumOfOddSquares nums =
    nums
    |> List.filter isOdd
    |> List.sumBy square

let numbers = [1; 2; 3; 4; 5]
let sum = sumOfOddSquares numbers

printfn "The sum of the odd squares in %A is %d" numbers sum
type Shape =
    | Square of side: double
    | Rectangle of width: double * length: double

let getArea shape =
    match shape with
    | Square side -> side * side
    | Rectangle (width, length) -> width * length

let square = Square 2.0
printfn $"The area of the square is {getArea square}"
                                   
type Customer(firstName, middleInitial, lastName) =
    member this.FirstName = firstName
    member this.MiddleInitial = middleInitial
    member this.LastName = lastName

    member this.SayFullName() =
        $"{this.FirstName} {this.MiddleInitial} {this.LastName}"

let customer = Customer("Emillia", "C", "Miller")

printfn $"Hello, I'm {customer.SayFullName()}!"
                                   

간결하고 강력하며 성능이 우수합니다.

F#에는 소프트웨어를 빌드하는 데 코드가 거의 필요하지 않은 간단한 구문이 있습니다. 정확하고 빠르며 신뢰할 수 있는 중요 업무용 소프트웨어를 빌드하기 위해 신뢰할 수 있는 강력한 형식 시스템, 편리한 표준 라이브러리 및 .NET 런타임으로 지원됩니다.

F# 시작하기

데이터 과학 및 ML을 위한 F#

F#은 최소한의 웹 API 빌드부터 데이터 조작, 대화형 프로그래밍, 데이터 과학 및 기계 학습 수행에 이르기까지 다양한 방법으로 사용됩니다.

형식 공급자측정 단위와 같은 F#의 형식 시스템 및 고유한 기능은 데이터 과학 및 기계 학습에 매우 적합합니다.

전문 도구, 어디서나

Windows, Linux, and macOS용 고품질 편집기는 모두 단일 F# 컴파일러에서 실행되어 일관된 고품질 기능을 제공합니다.

F#용 도구에 대해 알아보기

Microsoft + 커뮤니티

F#은 오픈 소스 언어이며 Microsoft는 주요 기여자입니다. 독립적인 F# Software Foundation은 F# 커뮤니티가 함께 성장하고 배울 수 있는 중심적인 장소를 제공합니다.

F# Software Foundation 웹 사이트

.NET에서 실행

F#은 .NET 개발자 플랫폼의 일부입니다. 기술, 코드 및 즐겨찾는 라이브러리를 사용하여 모든 유형의 앱을 빌드하세요.

.NET 플랫폼에 대해 알아보기

시작할 준비가 되셨나요?

단계별 자습서는 컴퓨터에서 F#을(를) 실행하는 데 도움이 될 것입니다.

시작하기