File tree 3 files changed +2
-7
lines changed
3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public struct Deque<T> {
21
21
}
22
22
23
23
public mutating func enqueueFront( _ element: T ) {
24
- array. insert ( element, atIndex : 0 )
24
+ array. insert ( element, at : 0 )
25
25
}
26
26
27
27
public mutating func dequeue( ) -> T ? {
Original file line number Diff line number Diff line change 1
1
//: Playground - noun: a place where people can play
2
2
3
- // last checked with Xcode 9.0b4
4
- #if swift(>=4.0)
5
- print ( " Hello, Swift 4! " )
6
- #endif
7
-
8
3
public struct Deque < T> {
9
4
private var array = [ T] ( )
10
5
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public struct Deque<T> {
23
23
}
24
24
25
25
public mutating func enqueueFront (_ element : T) {
26
- array.insert (element, atIndex : 0 )
26
+ array.insert (element, at : 0 )
27
27
}
28
28
29
29
public mutating func dequeue () -> T? {
You can’t perform that action at this time.
0 commit comments