RuntimeHelpers.EnumerateFromFunctions<'T,'U> 函数 (F#)
F# 编译器发出对此函数的调用,以实现从弱类型化 IEnumerable 序列到类型化序列的编译器内部函数转换。
命名空间/模块路径: Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers
程序集:FSharp.Core(在 FSharp.Core.dll 中)
// Signature:
RuntimeHelpers.EnumerateFromFunctions : (unit -> 'T) -> ('T -> bool) -> ('T -> 'U) -> seq<'U>
// Usage:
RuntimeHelpers.EnumerateFromFunctions create moveNext current
参数
create
类型:unit -> 'T初始值设定项函数。
moveNext
类型:'T -> bool用于循环访问和测试是否已到达序列末尾的函数。
current
类型:'T -> 'U用于检索当前元素的函数。
返回值
得到的类型化序列。
平台
Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2
版本信息
F# 运行时
受以下版本支持:2.0、4.0
Silverlight
受以下版本支持:3