https://github.com/ole/obstack
OBStack is a very simple implementation of a stack data structure (last in, first out) in Cocoa.
https://github.com/ole/obstack
Last synced: about 1 year ago
JSON representation
OBStack is a very simple implementation of a stack data structure (last in, first out) in Cocoa.
- Host: GitHub
- URL: https://github.com/ole/obstack
- Owner: ole
- Created: 2009-10-18T20:43:53.000Z (over 16 years ago)
- Default Branch: main
- Last Pushed: 2021-05-03T12:03:38.000Z (about 5 years ago)
- Last Synced: 2025-03-25T02:40:15.888Z (about 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 18.6 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
OBStack
=======
OBStack is a very simple implementation of a stack data structure (last in, first out) in Cocoa.
It supports the following operations:
* push: push a new object onto the stack.
* pop: retrieve the topmost object and remove it from the stack.
* top: retrieve the topmost object without removing it from the stack.
* length/height/count: the number of items on the stack.
* isEmpty: a boolean value if the stack is currently empty.
Internally, OBStack encapsulates a NSMutableArray to hold the stack objects.