From f02d0996bcaee49a4226ba678788e7550b06be29 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 24 May 2026 14:08:41 +0300 Subject: refactor(rpn): extract 'd' operator into Delete method (pj) Move the inline logic for the 'd' (delete variable) operator into a proper Operations.Delete method, following the same registration pattern as all other operators. Adds Delete to the StackOperator interface. --- internal/rpn/operations_interfaces.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/rpn/operations_interfaces.go') diff --git a/internal/rpn/operations_interfaces.go b/internal/rpn/operations_interfaces.go index cc60db2..39edcad 100644 --- a/internal/rpn/operations_interfaces.go +++ b/internal/rpn/operations_interfaces.go @@ -53,6 +53,7 @@ type StackOperator interface { Dup(stack *Stack) error Swap(stack *Stack) error Pop(stack *Stack) error + Delete(stack *Stack) error Show(stack *Stack) (string, error) } -- cgit v1.2.3