mostly adding some documentation bits

This commit is contained in:
2026-02-03 17:24:27 -07:00
parent a2ab03d24e
commit 5cb14eb26c
3 changed files with 177 additions and 3 deletions
+1 -3
View File
@@ -53,9 +53,7 @@ func (stk *Stack[T]) RemoveMostRecent(data T) bool {
} else if (i + 1) == len(stk.elements) {
stk.elements = stk.elements[:i]
} else {
high := stk.elements[i+1:]
stk.elements = stk.elements[:i]
stk.elements = append(stk.elements, high...)
stk.elements = append(stk.elements[:i], stk.elements[i+1:]...)
}
return true
}