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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -