DefineSingletons.jl

Author tkf
Popularity
0 Stars
Updated Last
4 Months Ago
Started In
May 2020

DefineSingletons

GitHub Actions

Define singleton and it's pretty-printing show in one go:

julia> using DefineSingletons

julia> @def_singleton mysingleton;

julia> mysingleton
mysingleton

julia> Base.issingletontype(typeof(mysingleton))
true

See more in the docstring of @def_singleton.