Skip to content

lukabratos/Stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Stack implementation in Swift

Generic stack implementation in Swift programming language.

protocol Stackable {
    associatedtype Element

    mutating func push(_ element: Element)
    mutating func pop() -> Element?
    func isEmpty() -> Bool
    func peek() -> Element?
}

Usage

See test.

About

Stack implementation in Swift

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages