2018-04-12から1日間の記事一覧
例えば下記のようなCounterクラスを考えます。 type Counter() = let mutable count = 0 member this.CountUp() = count <- count + 1 member this.CountDown() = count <- count - 1 member this.Count = count これをレコード型を用いて実装すると下記のよ…
例えば下記のようなCounterクラスを考えます。 type Counter() = let mutable count = 0 member this.CountUp() = count <- count + 1 member this.CountDown() = count <- count - 1 member this.Count = count これをレコード型を用いて実装すると下記のよ…