Home
Insert
Update snippet 'Singleton Pattern'
Title
Passcode
Description
singleton pattern in F#
Source code
type A private () = static let instance = A() static member Instance = instance member this.Action() = printfn "action" let DesignPatter1() = let a = A.Instance; a.Action()
Tags
design patterns
design patterns
Author
Link
Reference NuGet packages
If your snippet has external dependencies, enter the names of NuGet packages to reference, separated by a comma (
#r
directives are not required).
Update