Skip to content

Commit 3c3168e

Browse files
committed
Update Deque up to Swift 4.2.
1 parent 4d50254 commit 3c3168e

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

Deque/Deque-Simple.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public struct Deque<T> {
2121
}
2222

2323
public mutating func enqueueFront(_ element: T) {
24-
array.insert(element, atIndex: 0)
24+
array.insert(element, at: 0)
2525
}
2626

2727
public mutating func dequeue() -> T? {

Deque/Deque.playground/Contents.swift

-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
//: Playground - noun: a place where people can play
22

3-
// last checked with Xcode 9.0b4
4-
#if swift(>=4.0)
5-
print("Hello, Swift 4!")
6-
#endif
7-
83
public struct Deque<T> {
94
private var array = [T]()
105

Deque/README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public struct Deque<T> {
2323
}
2424

2525
public mutating func enqueueFront(_ element: T) {
26-
array.insert(element, atIndex: 0)
26+
array.insert(element, at: 0)
2727
}
2828

2929
public mutating func dequeue() -> T? {

0 commit comments

Comments
 (0)