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