Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これは明らかなはずですが、クラスに複数行の静的メソッドを含めるにはどうすればよいですか? 私はそれを理解することはできません...
複数行に分けて書くだけです。コンパイラは、インデントごとにメソッド本体を推測できます。
type Example = class static member Foo a b = // ... a + b end Example.Foo 1 2