functional programming - How to define and use static variables in F# class -
is there way have mutable static variable in f# class identical static variable in c# class ?
you use static let
bindings (note: while necessary times, it's none functional):
type staticmembertest () = static let mutable test : string = "" member this.test get() = test <- "asdf" test
Comments
Post a Comment