I want to make a singleton that initializes itself...
# getting-started
d
I want to make a singleton that initializes itself by constructing some internal object, extracting a variant of that object by calling a method on it, and then providing delegated functions for all the functions those two objects it made provides. It seems like I want some form of outer object declaration with companion objects inside, but I’m all tangled up in the syntax. Is this a straightforward task?