// only works within a module sclass StandardFunctions is AutoCloseable { volatile SS map; AutoCloseable updater; *() { updater = dm_onSnippetEdited(voidfunc(S id) { if (sameSnippetID(id, #1006654) || sameSnippetID(id, #761)) map = null; }); } // name to snippetID SS getMap() { if (map == null) map = stdFunctions_uncached(); ret map; } public void close { dispose updater; } }