factory
factory copied to clipboard
Stateful functions
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?