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 commands to manipulate an accumulation like a stack #103

Open
Tracked by #74
okamsn opened this issue Oct 20, 2021 · 1 comment · May be fixed by #107
Open
Tracked by #74

Add commands to manipulate an accumulation like a stack #103

okamsn opened this issue Oct 20, 2021 · 1 comment · May be fixed by #107

Comments

@okamsn
Copy link
Owner

okamsn commented Oct 20, 2021

We require that only accumulation commands can edit the variable. While we do have generic commands like reduce and accumulate, it would still be convenient to have others.

Possible candidates:

  • (drop VAR N :at POS)
  • (pop VAR N) as alias of (drop VAR N :at start).
  • (drop-while VAR COND)
  • pop-while

Sinc these commands only modify, maybe they should leave initialization to other commands?

@okamsn
Copy link
Owner Author

okamsn commented Oct 28, 2021

Also:

  • diff or difference for an operation like seq-difference
  • take and take-while for the opposite of drop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant