We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db64445 + 43f2916 commit b9a9759Copy full SHA for b9a9759
Stack/Stack.playground/Contents.swift
@@ -27,7 +27,7 @@ public struct Stack<T> {
27
}
28
29
public mutating func pop() -> T? {
30
- if count == 0 {
+ if isEmpty {
31
return nil
32
} else {
33
return array.removeLast()
0 commit comments