Share via


List.empty<'T> 型関数 (F#)

指定した型の空のリストを返します。

名前空間/モジュール パス: Microsoft.FSharp.Collections.List

アセンブリ: FSharp.Core (FSharp.Core.dll 内)

// Signature:
List.empty<'T> :  'T list

// Usage:
List.empty

解説

この関数は、コンパイルされたアセンブリでは Empty という名前です。F# 以外の言語から、またはリフレクションを使用してこの関数にアクセスする場合は、この名前を使用します。

使用例

List.empty の使用例を次のコードに示します。

// A generic empty list.
let emptyList1 = List.empty
// An empty list of a specific type.
let emptyList2 = List.empty<int>

プラットフォーム

Windows 8、Windows 7、Windows Server 2012 で Windows Server 2008 R2

バージョン情報

F# コア ライブラリのバージョン

サポート: ポータブル 2.0、4.0

参照

関連項目

Collections.List モジュール (F#)

Microsoft.FSharp.Collections 名前空間 (F#)