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

Add unary "discard" operator #6

Open
raehik opened this issue Jul 10, 2023 · 2 comments
Open

Add unary "discard" operator #6

raehik opened this issue Jul 10, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@raehik
Copy link
Contributor

raehik commented Jul 10, 2023

p pops the element on the top of the stack and prints it. Perhaps in some interactive sessions, you may want to discard the top of the stack without printing it.

Could use d for this.

@SimonClifford
Copy link
Contributor

I like this. Let's get a test built that uses the d operator.

@a-smith-github a-smith-github added the enhancement New feature or request label Jul 10, 2023
@SimonClifford
Copy link
Contributor

E.g. something like:

3 4 5 d + p   (stack should hold 7)

maybe?

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
None yet
Development

No branches or pull requests

3 participants