WLJS LogoWLJS Notebook

Language

LeakyModule

A variation of Module, which comes with its own garbage collector, that prevents symbols from being garbage collected by WL

LeakyModule[symbols_List, expr_, opts___] _

The only difference compared to traditional Module is an optional argument

  • "Garbage" :> _List a held symbol, that points to a list.

Then a user can manually purge them.

On this page