如何在F#中创建扩展方法,例如,像这个C#扩展:
public static string Right(this string host, int index)
{
return host.Substring(host.Length - index);
}
Run Code Online (Sandbox Code Playgroud) 现在FSharp v1已进入Beta版,现在可以询问vNext了.
该FSharp语言规范定义了以下保留关键字:
atomic break checked component const constraint constructor
continue eager fixed fori functor include
method mixin object parallel params process protected pure
sealed tailcall trait virtual volatile
Run Code Online (Sandbox Code Playgroud)
你希望看到哪些实现,为什么?
请回答一个关键字.