在C#中,可以声明泛型参数必须实现某个接口,如下所示:
public class Something<T> where T : IComparable { ... }
如何在F#中指定它?
generics f# interface
f# ×1
generics ×1
interface ×1