singleton

As above, but using arbitrary types and a factory function.

  1. T singleton [@property getter]
  2. singleton [@property getter]
    @property
    singleton
    (
    alias fun
    args...
    )
    ()
    if (
    is(typeof(fun(args)))
    )

Meta