F#では、クラスを定義せずに制限付きの型を表すことはできますか? 最初の分割数を2番目の分割数のすべての対として表現したいとします。私は何ができるC#で : class PairDivides
{
int a {get;private set;}
int b {get;private set;}
PairDivides(int first, int second)
の単位でレコードに拡張メソッドを追加すると、なぜこの作業を行います。 type Money =
{ Amount : decimal } with
member inline m.gotMoney : bool =
m.Amount > 0M
が、これは代わりに、私はerror FS0339: The signature and implementation