Inherits from NSObject
Declared in BFDataStructures.h

Overview

Primitive Stack implementation

Tasks

Instance Methods

description

- (NSString *_Nonnull)description
Discussion

Describe the Stack

Return Value

Describe the Stack

Declared In

BFDataStructures.h

empty

- (BOOL)empty
Discussion

Returns if the Stack is empty or not

Return Value

Returns YES if the Stack is empty, otherwise NO

Declared In

BFDataStructures.h

init

- (instancetype _Nonnull)init
Discussion

Initialize the Stack

Return Value

Returns the Stack object

Declared In

BFDataStructures.h

pop

- (id _Nullable)pop
Discussion

Removes an element on top of the Stack

Return Value

Returns the removed element

Declared In

BFDataStructures.h

push:

- (void)push:(id _Nonnull)object
Discussion

Adds an element on top of the Stack

Parameters

object

The element to add

Declared In

BFDataStructures.h