Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protocol Stack {
- associatedtype Element
- mutating func push(_ element: Element)
- mutating func pop()-> Element?
- var peek: Element? {
- get
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement