diff --git a/ufpy/ustack.py b/ufpy/ustack.py index 4eb18d6..ca29ad9 100644 --- a/ufpy/ustack.py +++ b/ufpy/ustack.py @@ -71,7 +71,7 @@ def pop(self) -> T: """ return self.__elements.pop() - def append(self, *items: T) -> UStack[T]: + def push(self, *items: T) -> UStack[T]: """Append items to stack""" self.__elements.extend(items) return UStack(iterable=self.__elements) @@ -98,7 +98,7 @@ def __call__(self, func: Callable[[int, T], T2]) -> UStack[T2]: def __add__(self, other: UStack[T2] | AnyCollection[T2] | T2) -> UStack[T | T2]: other = convert_to_stack(other) result = self.copy() - return result.append(*other.elements) + return result.push(*other.elements) def __sub__(self, other: UStack[T] | AnyCollection[T] | T) -> UStack[T]: other = convert_to_stack(other)