[FEATURE] Add "Last X" support #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add support to "Last X" feature, i.e. save top-of-stack on a separate register after any operation. For example:
Additional features:
possible solution: wrap main stack into a class with a custom
push_back
method(or << overload) to add additional logic to the “add”process. The last X can be retrieved with a getter. The class can be generic(as well as the dc_stack_t type)