You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, it can be difficult to create stack-stable 'functions' that utilize thoth's because there's no simple way to keep some of the top elements of the stack and remove the rest. A way to do it is to use Flock's Reflection + Gambit + Retrograde Purification, then extract the required elements from the front of the resulting list, but this requires a fair number of patterns and can be inconvenient to write.
A new stack manipulation pattern that can just keep some number of the top elements and discards the rest would make these kinds of utility patterns easier to write. e.g. something like Bookkeeper's Gambit, but removes all other elements of the stack not explicitly kept.
The text was updated successfully, but these errors were encountered:
At the moment, it can be difficult to create stack-stable 'functions' that utilize thoth's because there's no simple way to keep some of the top elements of the stack and remove the rest. A way to do it is to use Flock's Reflection + Gambit + Retrograde Purification, then extract the required elements from the front of the resulting list, but this requires a fair number of patterns and can be inconvenient to write.
A new stack manipulation pattern that can just keep some number of the top elements and discards the rest would make these kinds of utility patterns easier to write. e.g. something like Bookkeeper's Gambit, but removes all other elements of the stack not explicitly kept.
The text was updated successfully, but these errors were encountered: