Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Corollary to Bookkeeper's Gambit which keeps the top of the stack and removes the rest #411

Open
starji opened this issue Feb 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@starji
Copy link

starji commented Feb 14, 2023

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.

@object-Object object-Object added the enhancement New feature or request label Nov 11, 2023
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Hex Casting Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants