method-wrapper
Wrap a function with a self parameter to make it callable as a method.
Returns a new function of the form (self: none, ..args) => fn(..args).
Example: #let hide = method-wrapper(hide) to get a hide method.
Returns: function
Wrap a function with a self parameter to make it callable as a method.
Returns a new function of the form (self: none, ..args) => fn(..args).
Example: #let hide = method-wrapper(hide) to get a hide method.
Returns: function