factory icon indicating copy to clipboard operation
factory copied to clipboard

Stateful functions

Open jonthegeek opened this issue 4 years ago • 4 comments

This package completely kills the "stateful functions" use case of function factories. It wouldn't be hard to fix that, but I should give it some thought.

Two things:

  • Probably build in some "standard" states (like "how many times have I been called?"). Work that out.
  • When the user prints the function, also show the state information. Maybe via a print method? Can functions have classes?

jonthegeek avatar Jun 03 '20 20:06 jonthegeek