Skip to content

Commit

Permalink
Update Deque up to Swift 4.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
artFintch committed Oct 4, 2018
1 parent 4d50254 commit 3c3168e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Deque/Deque-Simple.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public struct Deque<T> {
}

public mutating func enqueueFront(_ element: T) {
array.insert(element, atIndex: 0)
array.insert(element, at: 0)
}

public mutating func dequeue() -> T? {
Expand Down
5 changes: 0 additions & 5 deletions Deque/Deque.playground/Contents.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
//: Playground - noun: a place where people can play

// last checked with Xcode 9.0b4
#if swift(>=4.0)
print("Hello, Swift 4!")
#endif

public struct Deque<T> {
private var array = [T]()

Expand Down
2 changes: 1 addition & 1 deletion Deque/README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public struct Deque<T> {
}

public mutating func enqueueFront(_ element: T) {
array.insert(element, atIndex: 0)
array.insert(element, at: 0)
}

public mutating func dequeue() -> T? {
Expand Down

0 comments on commit 3c3168e

Please sign in to comment.